aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-09-18 11:18:32 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-09-18 11:18:32 -0400
commitf0b2b4d4a8c29d9047be1b0e0b8a284aeed78158 (patch)
tree5f1bb7871bf5c38f548d597ca80c00b17e12baa7
parent2fbc1e3d2611e485cea863346188fc08109da5c5 (diff)
downloadstasis-update-doc-pytest-funcs.tar.gz
Reference basetemp_dir and junitxml_file functions in README.mdupdate-doc-pytest-funcs
-rw-r--r--README.md22
1 files changed, 11 insertions, 11 deletions
diff --git a/README.md b/README.md
index 14cd650..586237a 100644
--- a/README.md
+++ b/README.md
@@ -118,18 +118,18 @@ Create some test cases for packages.
version = 1.2.3
repository = https://github.com/org/our_cool_program
script =
- pytest -v \
- --basetemp="{{ storage.results_dir }}/truth-$(basename $(pwd))-{{ info.release_name }}" \
- --junit-xml="{{ storage.results_dir }}/results-$(basename $(pwd))-{{ info.release_name }}.xml" \
+ pytest -fEsx \
+ --basetemp="{{ func:basetemp_dir() }}" \
+ --junitxml="{{ func:junitxml_file() }}" \
tests/
[test:our_other_cool_program]
version = 4.5.6
repository = https://github.com/org/our_other_cool_program
script =
- pytest -v \
- --basetemp="{{ storage.results_dir }}/truth-$(basename $(pwd))-{{ info.release_name }}" \
- --junit-xml="{{ storage.results_dir }}/results-$(basename $(pwd))-{{ info.release_name }}.xml" \
+ pytest -fEsx \
+ --basetemp="{{ func:basetemp_dir() }}" \
+ --junitxml="{{ func:junitxml_file() }}" \
tests/
```
@@ -160,8 +160,6 @@ stasis mydelivery.ini
| --no-rewrite | n/a | Do not rewrite paths and URLs in output files |
| DELIVERY_FILE | n/a | STASIS delivery file |
-
-
## Environment variables
| Name | Purpose |
@@ -338,9 +336,11 @@ python = {{ env:MY_DYNAMIC_PYTHON_VERSION }}
Template functions can be accessed using the `{{ func:NAME(ARG,...) }}` notation.
-| Name | Purpose |
-|-------------------------------|----------------------------------------------|
-| get_github_release_notes_auto | Generate release notes for all test contexts |
+| Name | Purpose |
+|-------------------------------|------------------------------------------------------------------|
+| get_github_release_notes_auto | Generate release notes for all test contexts |
+| basetemp_dir | Generate directory path to test block's temporary data directory |
+| junitxml_file | Generate directory path and file name for test result file |
# Mission files