You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/source/tests/pytest_framework.rst
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,8 +9,8 @@ simulation is run with two versions of ``enzo-e`` and their results are compared
9
9
This is useful for testing problems with no analytical solution or generally
10
10
verifying that results from commonly run simulations don't drift.
11
11
12
-
It is also useful for testing properties of simulation runs beyond the exit-time/cycle of the simulation.
13
-
(While such tests do exist in the ctest-framework, they often involve more boiler-plate code).
12
+
It is also useful for testing problems that do have analytic solutions (the answer test might quantify how close a simulation result is to the analytic expected solution).
13
+
While such tests do exist in the ctest-framework, they often involve more boiler-plate code.
14
14
15
15
`pytest <https://docs.pytest.org/>`__ is a Python-based framework for detecting
16
16
and running a series of tests within a source code repository. When running
@@ -44,7 +44,7 @@ other useful answer testing functionality are located in the source in
44
44
`test/answer_tests/answer_testing.py`. All answer tests are located in the
45
45
other files within the `test/answer_tests` directory.
46
46
47
-
Some other functionality, that may be reused in other unrelated scripts provided in the Enzo-E repository, is provided in the ``test_utils`` subdirectory.
47
+
Some other functionality, that may be reused in other unrelated scripts provided in the Enzo-E repository, are provided in the ``test_utils`` subdirectory.
48
48
49
49
Running the Answer Test Suite
50
50
-----------------------------
@@ -91,7 +91,7 @@ In cases where both are set, the command line argument is given precedence.
91
91
- points to the build-directory where the target enzo-e binary was built (that binary has the path: BUILD_DIR/bin/enzo-e).
92
92
The path to the charmrun launcher will be inferred from the `BUILD_DIR/CMakeCache.txt` file, but can be overwritten by the ``--charm`` flag or the ``CHARM_PATH`` environment variable.
93
93
This precedence was chosen in case a user causes a change to relevant cached build-variables, but have not rebuilt Enzo-E (i.e. `CMakeCache.txt` may not be valid for the binary).
94
-
When this flag isn't specified, the test infrastructure searches for the enzo-e binary at ENZOE_ROOT/build/bin/enzo-e, but does'nt try to infer charmrun's location from `CMakeCache.txt`.
94
+
When this flag isn't specified, the test infrastructure searches for the enzo-e binary at ENZOE_ROOT/build/bin/enzo-e, but doesn't try to infer charmrun's location from `CMakeCache.txt`.
95
95
* - ``--local-dir``
96
96
- ``TEST_RESULTS_DIR``
97
97
- points to a directory in which answers will be stored/loaded
@@ -121,7 +121,8 @@ First, check out the highest numbered gold standard tag and compile ``enzo-e``.
121
121
122
122
.. code-block:: bash
123
123
124
-
$ git checkout gold-standard-1
124
+
# in the future, you will need to subsitute 004 for a higher number
125
+
$ git checkout gold-standard-004
125
126
$ ...compile enzo-e
126
127
127
128
Then, run the test suite by calling ``pytest`` with the answer test directory (make sure to configure behavior correctly with command-line arguments or environment variables).
Copy file name to clipboardExpand all lines: doc/source/tutorial/getting_started.rst
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -284,7 +284,7 @@ These options control compilation choices that can be used to facillitate profil
284
284
Testing Options
285
285
^^^^^^^^^^^^^^^
286
286
287
-
These options configure properties of parallel automated tests.
287
+
These options configure properties of automated tests. These options currently just affect tests in the :ref:`ctest framework <ctest>` and don't affect tests in the :ref:`pytest framework <pytest>`.
288
288
289
289
.. list-table:: Testing-Related Configuration
290
290
:widths: 10 30 5
@@ -302,6 +302,10 @@ These options configure properties of parallel automated tests.
302
302
* - ``PARALLEL_LAUNCHER_NPROC``
303
303
- Number of processors to run parallel unit tests
304
304
- 4
305
+
* - ``BUILD_TESTING``
306
+
- Whether to setup the CTest infrastructure and build unit test binaries (which are primarily built to be executed by the CTest infrastructure). This has no effect on the pytest infrastructure.
0 commit comments