[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 14/21] docs/devel/testing: add instruction to run a single accepta
From: |
Philippe Mathieu-Daudé |
Subject: |
[PULL 14/21] docs/devel/testing: add instruction to run a single acceptance test |
Date: |
Mon, 27 Sep 2021 19:02:20 +0200 |
From: Willian Rampazzo <willianr@redhat.com>
Add instructions to the Acceptance tests section about running a
single test file or a test within the test file.
Signed-off-by: Willian Rampazzo <willianr@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20210923161141.232208-3-willianr@redhat.com>
---
docs/devel/testing.rst | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/docs/devel/testing.rst b/docs/devel/testing.rst
index d1841e35d57..c9f6b97f876 100644
--- a/docs/devel/testing.rst
+++ b/docs/devel/testing.rst
@@ -754,6 +754,34 @@ may be invoked by running:
tests/venv/bin/avocado run $OPTION1 $OPTION2 tests/acceptance/
+Note that if ``make check-acceptance`` was not executed before, it is
+possible to create the Python virtual environment with the dependencies
+needed running:
+
+ .. code::
+
+ make check-venv
+
+It is also possible to run tests from a single file or a single test within
+a test file. To run tests from a single file within the build tree, use:
+
+ .. code::
+
+ tests/venv/bin/avocado run tests/acceptance/$TESTFILE
+
+To run a single test within a test file, use:
+
+ .. code::
+
+ tests/venv/bin/avocado run tests/acceptance/$TESTFILE:$TESTCLASS.$TESTNAME
+
+Valid test names are visible in the output from any previous execution
+of Avocado or ``make check-acceptance``, and can also be queried using:
+
+ .. code::
+
+ tests/venv/bin/avocado list tests/acceptance
+
Manual Installation
-------------------
--
2.31.1
- [PULL 04/21] tests/acceptance: add replay kernel test for alpha, (continued)
- [PULL 04/21] tests/acceptance: add replay kernel test for alpha, Philippe Mathieu-Daudé, 2021/09/27
- [PULL 06/21] Acceptance tests: add myself as a reviewer for the acceptance tests, Philippe Mathieu-Daudé, 2021/09/27
- [PULL 07/21] Acceptance Tests: add standard clean up at test tearDown(), Philippe Mathieu-Daudé, 2021/09/27
- [PULL 08/21] avocado_qemu: standardize super() call following PEP3135, Philippe Mathieu-Daudé, 2021/09/27
- [PULL 05/21] tests/acceptance: Linux boot test for record/replay, Philippe Mathieu-Daudé, 2021/09/27
- [PULL 09/21] avocado_qemu: fix import module based on isort, Philippe Mathieu-Daudé, 2021/09/27
- [PULL 10/21] avocado_qemu: tweak ssh connect method, Philippe Mathieu-Daudé, 2021/09/27
- [PULL 11/21] avocado_qemu: explicitly return None to avoid R1710, Philippe Mathieu-Daudé, 2021/09/27
- [PULL 12/21] avocado_qemu: fix inheritance order on LinuxTest class, Philippe Mathieu-Daudé, 2021/09/27
- [PULL 13/21] tests/Makefile: allow control over tags during check-acceptance, Philippe Mathieu-Daudé, 2021/09/27
- [PULL 14/21] docs/devel/testing: add instruction to run a single acceptance test,
Philippe Mathieu-Daudé <=
- [PULL 15/21] tests/Makefile: add AVOCADO_TESTS option to make check-acceptance, Philippe Mathieu-Daudé, 2021/09/27
- [PULL 16/21] qemu: Split machine_ppc.py acceptance tests, Philippe Mathieu-Daudé, 2021/09/27
- [PULL 18/21] acceptance/tests/vnc.py: use explicit syntax for enabling passwords, Philippe Mathieu-Daudé, 2021/09/27
- [PULL 17/21] Acceptance Tests: improve check-acceptance description, Philippe Mathieu-Daudé, 2021/09/27
- [PULL 19/21] tests/acceptance/boot_xen.py: removed unused import, Philippe Mathieu-Daudé, 2021/09/27
- [PULL 21/21] tests/acceptance/ppc_prep_40p.py: clean up unused import, Philippe Mathieu-Daudé, 2021/09/27
- [PULL 20/21] tests/acceptance/ppc_prep_40p.py: NetBSD 7.1.2 location update, Philippe Mathieu-Daudé, 2021/09/27
- Re: [PULL 00/21] Integration testing patches for 2021-09-27, Philippe Mathieu-Daudé, 2021/09/27