Skip to content

Commit

Permalink
Issue #10 #24 #37 update help and readme on process selection
Browse files Browse the repository at this point in the history
  • Loading branch information
soxofaan committed Jan 25, 2024
1 parent 32296eb commit dbbcb39
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,12 @@ process selection options:
- Example: `--process-levels=L1,L2`.`
- A level does not imply other levels, so each desired level must be specified explicitly.
For example, L2 does **not** include L1 automatically.
- `--experimental`: Enables tests for experimental processes.
By default experimental processes will be skipped.
If neither `--processes` nor `--process-levels` are specified, all processes are considered.
If both are specified, the union of both will be considered.
- `--experimental`: By default, experimental processes (or experimental process tests) are ignored.
Enabling this option will consider experimental processes and tests.
### Runner for individual process testing
Expand Down
12 changes: 9 additions & 3 deletions src/openeo_test_suite/lib/pytest_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,27 @@ def pytest_addoption(parser):
"--process-levels",
action="store",
default="",
help="The openEO process profiles you want to test against, e.g. 'L1,L2,L2A'. Mutually exclusive with --processes.",
help="openEO process selection: "
"the openEO process profiles/levels you want to test against, e.g. 'L1,L2,L2A'. "
"Can be used in combination with `--processes`, in which case the union of both selections will be taken. ",
)
parser.addoption(
"--processes",
action="store",
default="",
help="The openEO processes you want to test against, e.g. 'apply,reduce_dimension'. Mutually exclusive with --process-levels.",
help="openEO process selection: "
"the openEO processes you want to test against, e.g. 'apply,reduce_dimension'. "
"Can be used in combination with `--process-levels`, in which case the union of both selections will be taken.",
)

parser.addoption(
"--experimental",
type=bool,
action=argparse.BooleanOptionalAction,
default=False,
help="Run tests for experimental functionality or not. By default the tests will be skipped.",
help="openEO process selection: "
"toggle to consider experimental processes (and experimental tests) in the test selection procedure. "
"By default, experimental processes are ignored.",
)

parser.addoption(
Expand Down

0 comments on commit dbbcb39

Please sign in to comment.