This repository was archived by the owner on Sep 11, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 174
feat: browser extension testing project rough draft #48
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| # Browser extension testing and reliability | ||
|
|
||
| Browser extensions are a powerful way to improve your workflow by adding new | ||
| features to your browser. However, they are inherently hard to test. Our popular | ||
| [browser extension](repo...), which adds code intelligence to your code host, | ||
| runs in multiple browsers ([Chrome](...), [Firefox](...)) which can change the | ||
| way their APIs work at any time and runs across many code | ||
| hosts, any of which could change their DOM, thus breaking our extension. | ||
|
|
||
| Reliability is important to us and our users, so we're building up the testing | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What are the requirements for you to feel comfortable enabling Sourcegraph extensions for all (removing the feature flag)? Is your comment sourcegraph/browser-extensions#272 (comment) still current? If so, please explicitly state those conditions/requirements here, because that's the main piece of info the folks working on extensions will want to know from this doc. |
||
| infrastructure around our browser extension. Here's how we plan to do it: | ||
|
|
||
| 1. Abstract code so it is more unit testable | ||
|
|
||
| - Keep calls to browser extension APIs out of business logic so we can unit | ||
| test that logic | ||
| - Rearchitect logic integrating with individual code hosts so that we can unit | ||
| test the integration of code hosts and code intelligence | ||
|
|
||
| 1. Add more e2e tests | ||
|
|
||
| - Run each test on all supported code hosts - code hosts won't be considered | ||
| fully supported until we're able to run tests on it | ||
| - Test with different feature flags enabled or disabled | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should remove some features and feature flags while we're at it:
|
||
| - Test using different Sourcegraph instances | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You intend to work on this immediately after shipping sourcegraph/browser-extensions#271, right? (Do you have an ETA on merging that PR?) That sounds right to me. I already moved the rest of "Better config and depoyment for code host UI integrations" to November 2018 on https://docs.sourcegraph.com/dev/roadmap#november-2018 and split out the options page blog post to #46.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct. I just have to pull in access token changes that I made the other day into the new options menu.