Open sdc50 opened 1 year ago
Duplicate of #640
The error that is raise when trying to run the tests without source:
Tethys Test Case class has helpful methods for working with persistent stores:
The instructions in the scaffolded test file are out of date:
Short term: Update docs to use tethys manage test -f <path>
command.
Long term: Create a tethys test --app <app_name>
command.
Docs were updated in #890
Currently the test framework in apps suggests that apps run tests with the
tethys test
command. This command will only work if the tethys source code is present (i.e. will not work if tethys is installed from conda).There is a simple check in the
test
command to see if thetests
source code is present. We could add additional checks to see if the test command is trying to run tests on an app rather than on tethys itself.Alternatively, with the new
manage
command tests can also be run withtethys manage test
. It may be better to just change the documentation (including in the app scaffold) to instruct users to run app tests withtethys manage test
rather than withtethys test
.