-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7933df7
commit d4300f5
Showing
21 changed files
with
4,899 additions
and
97 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,6 @@ dist | |
coverage | ||
**/*.d.ts | ||
tests | ||
ui-tests/** | ||
ipympl/labextension/** | ||
ipympl/nbextension/extension.js |
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
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Visual regression tests using Galata | ||
|
||
This directory contains visual regression tests for ipympl, using Galata. | ||
|
||
In order to run them, you need to install dependencies: | ||
|
||
```bash | ||
const install -c conda-forge yarn jupyterlab=3.0.7 | ||
|
||
yarn install | ||
``` | ||
|
||
Then start JupyterLab in one terminal (you need to check that it properly starts on port 8888): | ||
```bash | ||
yarn run start-jlab | ||
``` | ||
|
||
Finally, run the galata tests: | ||
```bash | ||
yarn run test | ||
``` | ||
|
||
If bqplot visuals change, you can re-generate reference images by running: | ||
```bash | ||
yarn run update-references | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"testId": "test" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
c.ServerApp.port = 8888 # noqa | ||
c.ServerApp.token = "" # noqa | ||
c.ServerApp.password = "" # noqa | ||
c.ServerApp.disable_check_xsrf = True # noqa | ||
c.ServerApp.open_browser = False # noqa | ||
c.LabApp.open_browser = False # noqa | ||
c.LabApp.expose_app_in_browser = True # noqa |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"name": "ipympl-ui-tests", | ||
"version": "1.0.0", | ||
"description": "ipympl UI Tests", | ||
"private": true, | ||
"scripts": { | ||
"start-jlab": "jupyter lab --config ./jupyter_server_config.py", | ||
"start-jlab:detached": "yarn run start-jlab&", | ||
"clean": "rimraf tests/notebooks/.ipynb_checkpoints && rimraf test-output", | ||
"test": "yarn run clean && galata --image-match-threshold 0.33", | ||
"update-references": "galata --update-references" | ||
}, | ||
"author": "ipympl", | ||
"license": "Apache-2.0", | ||
"dependencies": { | ||
"@jupyterlab/galata": "3.0.11-2", | ||
"klaw-sync": "^6.0.0", | ||
"rimraf": "^3.0.2" | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.