Skip to content

Commit

Permalink
Better consistency between regtestS and exampleS options
Browse files Browse the repository at this point in the history
  • Loading branch information
ceriottm committed Nov 15, 2023
1 parent 095a594 commit d7e6dd2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ jobs:
- name: pytests for examples
shell: bash
run: |
i-pi-tests -t example
i-pi-tests -t examples
10 changes: 5 additions & 5 deletions tools/py/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
main_folder = Path(__file__).resolve().parents[2] / "ipi_tests"
test_folder = {
"all": main_folder,
"example": main_folder / "examples",
"examples": main_folder / "examples",
"regtests": main_folder / "regression_tests",
"unit": main_folder / "unit_tests",
}
Expand All @@ -37,21 +37,21 @@
"type: i-pi-tests \n"
"\n"
"for running only the tests that checks the integrity of the examples inputs \n"
"type: i-pi-style -t example \n"
"type: i-pi-tests -t examples \n"
"\n"
"for running the regression tests \n"
"type: i-pi-style -t regtests \n"
"type: i-pi-tests -t regtests \n"
"\n"
"and for running the unitary tests \n"
"type: i-pi-style -t unit \n",
"type: i-pi-tests -t unit \n",
)

parser.add_argument(
"-t",
"--tests",
type=str,
default="all",
choices=["all", "example", "regtests", "unit"],
choices=["all", "examples", "regtests", "unit"],
help="Specifies which tests are going to be called.",
)

Expand Down

0 comments on commit d7e6dd2

Please sign in to comment.