Skip to content

Testing changes to Easydata

Amy Wooding edited this page Sep 3, 2022 · 8 revisions

It's a bit of a rat's nest right now...but tests exist.

Testing basic cookie cutter functionality

There are tests that we inherited from cookiecutter-datascience.

pytest in tests will run it

Currently fails one of the tests because our directory structure is different. This needs to get fixed.

Testing everything else

Build an easydata project

Let's call the project test-env

  • locally: cookiecutter repo-location with the repo on the branch to be tested, input test-env as the project and repo name.
  • in ci: See .circleci/config.yml and the setup section

Create the environment

        cd test-env
        make create_environment
        conda activate test-env
        touch environment.yml
        make update_environment
        conda activate test-env

Run tests

python src/tests/make_test_datasets.py
make test

Test documentation notebooks

cd docs
purest -v test_docs.py

Clone this wiki locally