1ct_testspec(3) Erlang Module Definition ct_testspec(3)
2
3
4
6 ct_testspec - Parsing of test specifications for Common Test.
7
8
10 Parsing of test specifications for Common Test.
11
12 This module exports help functions for parsing of test specifications.
13
15 get_tests(SpecsIn) -> {ok, [{Specs,Tests}]} | {error, Reason}
16
17 Types:
18
19 SpecsIn = [string()] | [[string()]]
20 Specs = [string()]
21 Test = [{Node,Run,Skip}]
22 Node = atom()
23 Run = {Dir,Suites,Cases}
24 Skip = {Dir,Suites,Comment} | {Dir,Suites,Cases,Comment}
25 Dir = string()
26 Suites = atom | [atom()] | all
27 Cases = atom | [atom()] | all
28 Comment = string()
29 Reason = term()
30
31 Parse the given test specification files and return the tests to
32 run and skip.
33
34 If SpecsIn=[Spec1,Spec2,...], separate tests will be created per
35 specification. If SpecsIn=[[Spec1,Spec2,...]], all specifica‐
36 tions will be merge into one test.
37
38 For each test, a {Specs,Tests} element is returned, where Specs
39 is a list of all included test specifications, and Tests speci‐
40 fies actual tests to run/skip per node.
41
42
43
44Ericsson AB common_test 1.25.1 ct_testspec(3)