-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace `e2e` tests with a new set of tests that is independent of ICON data. These tests basically tests the command-line interfaces of the click-subcommand. So far `cdo-table`, `tolerance`, `perturb`, `performance` and `stats` are covered. ### Pytest fixtures In order to handle data requirements of the tests a set of fixtures is used. This allows to organize the data requirements of the tests in a central place. ### Execute all tests using Pytest In order to start transition to pytests, collect and execute all tests using pytest ### Reference files in `tests/data` The tests compare its results to precomputed values located in the repo. This ensures consistency over time. In case new reference data is required, pytests automatically stores the new references for each test-session in a folder in `/tmp`. The location is printed to terminal when running pytest. ### cdo-table overrides function at runtime See #32, a quick and dirty fix has been introduce in the PR. --------- Co-authored-by: Jonas Jucker <[email protected]>
- Loading branch information
1 parent
cba177b
commit 434ceed
Showing
41 changed files
with
3,861 additions
and
663 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 |
---|---|---|
@@ -1,18 +1,15 @@ | ||
.idea* | ||
.vscode/* | ||
!.vscode/launch.json | ||
!.vscode/settings.json | ||
*pycache* | ||
*.swp | ||
*.png | ||
*.log | ||
*.nc | ||
tests/util/icon/test/* | ||
tests/tmp/* | ||
probtest_env | ||
|
||
mock_output | ||
env | ||
probtest_data | ||
reference_data | ||
# output from unittest | ||
test_stats.csv | ||
test_stats_csv.csv | ||
test_stats_csv.dat | ||
random_tolerance.csv |
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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
Oops, something went wrong.