Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:23
erlang
1091-doc-add-missing-syntax-case-to-Test-Case-G...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 1091-doc-add-missing-syntax-case-to-Test-Case-Groups.patch of Package erlang
From f4a0b1f4dd333eef18b6f37dc2e84b01357db1c3 Mon Sep 17 00:00:00 2001 From: Kiko Fernandez-Reyes <kiko@erlang.org> Date: Fri, 7 Oct 2022 09:52:42 +0200 Subject: [PATCH 1/2] doc: add missing syntax case to Test Case Groups --- lib/common_test/doc/src/write_test_chapter.xml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/lib/common_test/doc/src/write_test_chapter.xml b/lib/common_test/doc/src/write_test_chapter.xml index cf9dc426c8..b80ae6a8a2 100644 --- a/lib/common_test/doc/src/write_test_chapter.xml +++ b/lib/common_test/doc/src/write_test_chapter.xml @@ -551,6 +551,21 @@ [{tests2, default, [{tests3, [parallel,{repeat,100}]}]}]}].</pre> + <p>For ease of readibility, all syntax definitions can be replaced by a function + call whose return value should match the expected syntax case.</p> + <p>Example</p> + <pre> + all() -> + [{group, tests1, default, test_cases()}, + {group, tests1, default, [shuffle_test(), + {tests3, default}]}]. + test_cases() -> + [{tests2, [parallel]}, {tests3, default}]. + + shuffle_test() -> + {tests2, [shuffle,{repeat,10}]}. + </pre> + <p>The described syntax can also be used in test specifications to change group properties at the time of execution, without having to edit the test suite. For more information, see -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor