kbase-sfa-2021 / example_sdk_app

example_sdk_app
MIT License
5 stars 1 forks source link

Unit testing infrastructure #2

Closed dakotablair closed 2 years ago

dakotablair commented 2 years ago

We wish to add unit testing which can be done offline, that is, without contacting KBase directly.

Goals:

bio-boris commented 2 years ago
dakotablair commented 2 years ago

How can we make the developer experience easier?

Ideally, one could simply run make unit-tests and run the unit tests based on the code on the host machine. If the tests depend on system dependencies within the image this can be a problem. Running the tests within a container solves this problem, but creates another since the container filesystem is different than the host. If the tests change on the host then the image needs to be rebuilt before tests can run. One alternative is to mount a volume, but this might may require modifying run_bash.sh.

bio-boris commented 2 years ago
dakotablair commented 2 years ago

Closed by #3 .