-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rerun GitHub Actions on push events to master; update dev documentation to mention a weird thing with JS tests #468
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
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 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
This file contains 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 |
---|---|---|
|
@@ -17,8 +17,8 @@ npm install -g qunit-puppeteer jshint [email protected] | |
|
||
If you don't have `npm` installed, you will need to install that first. | ||
|
||
**Note**: if you can't install puppeteer, the test suite can be run using a | ||
web browser by opening the page in `tests/index.html`. | ||
**Note**: if you can't install puppeteer, the (JavaScript) test suite can be | ||
run using a web browser by opening the page in `tests/index.html`. | ||
|
||
## Running tests | ||
|
||
|
@@ -34,6 +34,17 @@ make test | |
If you just want to run the Python or JavaScript tests, you can run | ||
`make pytest` or `make jstest` respectively. | ||
|
||
### Notes about JavaScript tests | ||
If you add HTML elements to EMPress' HTML code that the JavaScript code relies | ||
on, you will also need to add these elements to the `tests/index.html` file. | ||
Ideally this would not be necessary, but for now it is. (Failing to do this can | ||
cause obscure error messages from the JS tests.) | ||
|
||
Also, loading the test `index.html` fails on Firefox for some of the `Legend` | ||
tests: see https://github.com/biocore/empress/issues/435. To circumvent this, | ||
if you need to load the tests in the browser (rather than using puppeteer), | ||
we recommend using a different browser for the time being. | ||
|
||
## Front-end development | ||
|
||
For convenience, a utility script `./tests/python/make-dev-page.py` is bundled | ||
|
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.
Do you think we should also include a note about issue 435 that causes the legend test to fail if you load tests/index.html into a firefox browser?
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.
That makes sense. Just added a note.