mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-08 02:24:04 +00:00
1.7 KiB
1.7 KiB
Image Tests
We greatly appreciate pull requests that extend the automated tests that vet the basic functionality of the Docker images.
How the Tests Work
Travis executes make build-test-all
against every pull request submitted to the jupyter/docker-stacks
repository. The make
command builds every docker image. After building each image, the make
command executes pytest
to run both image-specific tests like those in base-notebook/test/ and common tests defined in test/. Both kinds of tests make use of global pytest fixtures defined in the conftest.py file at the root of the projects.
Contributing New Tests
Please follow the process below to add new tests:
- If the test should run against every image built, add your test code to one of the modules in test/ or create a new module.
- If your test should run against a single image, add your test code to one of the modules in
some-notebook/test/
or create a new module. - Build one or more images you intend to test and run the tests locally. If you use
make
, call:
make image/somestack-notebook
make test/somestack-notebook
- Submit a pull request (PR) with your changes.
- Watch for Travis to report a build success or failure for your PR on GitHub.
- Discuss changes with the maintainers and address any issues running the tests on Travis.