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
``TEST`` can have the form ``[TEST.][FIXT.]*``, in which case ``VAR`` will be set in fixture ``FIXT`` of ``TEST``.
512
520
Note that this syntax is recursive on fixtures, so that a variable can be set in a fixture arbitrarily deep.
513
-
``TEST`` prefix refers to the test class name, *not* the test name, but ``FIXT`` refers to the fixture name *inside* the referenced test.
521
+
``TEST`` prefix refers to the test class name, *not* the test name and ``FIXT`` refers to the fixture *variable name* inside the referenced test, i.e., the test variable to which the fixture is bound.
522
+
The fixture variable name is referred to as ``'<varname>`` when listing tests with the :option:`-l` and :option:`-L` options.
514
523
515
524
Multiple variables can be set at the same time by passing this option multiple times.
516
525
This option *cannot* change arbitrary test attributes, but only test variables declared with the :attr:`~reframe.core.pipeline.RegressionMixin.variable` built-in.
@@ -951,24 +960,29 @@ Here is how this test is listed where the various components of the display name
951
960
952
961
.. code-block:: console
953
962
954
-
- TestA %x=4 %l.foo=10 %t.p=2 /1c51609b
955
-
^Myfixture %p=1 ~TestA_3 /f027ee75
956
-
^MyFixture %p=2 ~TestA_3 /830323a4
957
-
^X %foo=10 ~generic:default+builtin /7dae3cc5
958
-
- TestA %x=3 %l.foo=10 %t.p=2 /707b752c
959
-
^MyFixture %p=1 ~TestA_2 /02368516
960
-
^MyFixture %p=2 ~TestA_2 /854b99b5
961
-
^X %foo=10 ~generic:default+builtin /7dae3cc5
962
-
- TestA %x=4 %l.foo=10 %t.p=1 /c65657d5
963
-
^MyFixture %p=2 ~TestA_1 /f0383f7f
964
-
^MyFixture %p=1 ~TestA_1 /d07f4281
965
-
^X %foo=10 ~generic:default+builtin /7dae3cc5
966
-
- TestA %x=3 %l.foo=10 %t.p=1 /1b9f44df
967
-
^MyFixture %p=2 ~TestA_0 /b894ab05
968
-
^MyFixture %p=1 ~TestA_0 /ca376ca8
969
-
^X %foo=10 ~generic:default+builtin /7dae3cc5
963
+
- TestA %x=4 %l.foo=10 %t.p=2 /8804be5d
964
+
^MyFixture %p=1 ~TestA_3 't 'f /f027ee75
965
+
^MyFixture %p=2 ~TestA_3 't 'f /830323a4
966
+
^X %foo=10 ~generic:default+builtin 'l /7dae3cc5
967
+
- TestA %x=3 %l.foo=10 %t.p=2 /89f6f5d1
968
+
^MyFixture %p=1 ~TestA_2 't 'f /02368516
969
+
^MyFixture %p=2 ~TestA_2 't 'f /854b99b5
970
+
^X %foo=10 ~generic:default+builtin 'l /7dae3cc5
971
+
- TestA %x=4 %l.foo=10 %t.p=1 /af9b2941
972
+
^MyFixture %p=2 ~TestA_1 't 'f /f0383f7f
973
+
^MyFixture %p=1 ~TestA_1 't 'f /d07f4281
974
+
^X %foo=10 ~generic:default+builtin 'l /7dae3cc5
975
+
- TestA %x=3 %l.foo=10 %t.p=1 /a9e50aa3
976
+
^MyFixture %p=2 ~TestA_0 't 'f /b894ab05
977
+
^MyFixture %p=1 ~TestA_0 't 'f /ca376ca8
978
+
^X %foo=10 ~generic:default+builtin 'l /7dae3cc5
970
979
Found 4 check(s)
971
980
981
+
Notice that the variable name to which every fixture is bound in its parent test is also listed as ``'<varname>``.
982
+
This is useful for setting variables down the fixture hierarchy using the :option:`-S` option.
0 commit comments