[rtems-docs commit] eng: Add test case attributes

Sebastian Huber sebh at rtems.org
Thu Aug 20 07:01:20 UTC 2020


Module:    rtems-docs
Branch:    master
Commit:    9633e98d5df0bfa19989fea5c5753cb6f8d84fa8
Changeset: http://git.rtems.org/rtems-docs/commit/?id=9633e98d5df0bfa19989fea5c5753cb6f8d84fa8

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Aug  6 09:15:13 2020 +0200

eng: Add test case attributes

Update #3715.

---

 eng/req/items.rst | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/eng/req/items.rst b/eng/req/items.rst
index cba6cc6..d2b2860 100644
--- a/eng/req/items.rst
+++ b/eng/req/items.rst
@@ -1716,10 +1716,20 @@ test-brief
     The attribute value shall be an optional string. If the value is present,
     then it shall be the test case brief description.
 
+test-cleanup
+    The attribute value shall be an optional string. If the value is present,
+    then it shall be the test cleanup code.  The code is placed in the test
+    action loop body after the test post-condition checks.
+
 test-context
     The attribute value shall be a list. Each list element shall be an
     :ref:`SpecTypeActionRequirementTestContextMember`.
 
+test-context-support
+    The attribute value shall be an optional string. If the value is present,
+    then it shall be the test context support code.  The context support code
+    is placed at file scope before the test context definition.
+
 test-description
     The attribute value shall be an optional string. If the value is present,
     then it shall be the test case description.
@@ -1738,6 +1748,11 @@ test-local-includes
 test-name
     The attribute value shall be a :ref:`SpecTypeTestName`.
 
+test-prepare
+    The attribute value shall be an optional string. If the value is present,
+    then it shall be the early test preparation code.  The code is placed in
+    the test action loop body before the test pre-condition preparations.
+
 test-setup
     The attribute value shall be an
     :ref:`SpecTypeActionRequirementTestFixtureMethod`.
@@ -1841,6 +1856,7 @@ Please have a look at the following example:
     test-action: |
       /* Call the function of the action */
     test-brief: null
+    test-cleanup: null
     test-context:
     - brief: null
       description: null
@@ -1848,11 +1864,13 @@ Please have a look at the following example:
     - brief: null
       description: null
       member: option_type option
+    test-context-support: null
     test-description: null
     test-header: null
     test-includes: []
     test-local-includes: []
     test-name: RedGreenData
+    test-prepare: null
     test-setup: null
     test-stop: null
     test-support: null



More information about the vc mailing list