aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/doc/src/ct_testspec.xml
blob: 36893f66cff9fdfb05d3cf076c6c5f1b05902e28 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE erlref SYSTEM "erlref.dtd">

<erlref>
  <header>
    <copyright>
      <year>2016</year>
      <holder>Ericsson AB. All Rights Reserved.</holder>
    </copyright>
    <legalnotice>
      Licensed under the Apache License, Version 2.0 (the "License");
      you may not use this file except in compliance with the License.
      You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

      Unless required by applicable law or agreed to in writing, software
      distributed under the License is distributed on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      See the License for the specific language governing permissions and
      limitations under the License.

    </legalnotice>

    <title>ct_testspec</title>
    <prepared></prepared>
    <responsible></responsible>
    <docno></docno>
    <approved></approved>
    <checked></checked>
    <date></date>
    <rev>A</rev>
    <file>ct_testspec.xml</file>
  </header>
  <module>ct_testspec</module>
  <modulesummary>Parsing of test specifications for Common Test.
  </modulesummary>

<description>

    <p>Parsing of test specifications for <c>Common Test</c>.</p>

    <p>This module exports help functions for parsing of test specifications.</p>

</description>

  <funcs>
    <func>
    <name>get_tests(SpecsIn) -&gt; {ok, [{Specs,Tests}]} | {error, Reason}</name>
    <fsummary>Parse the given test specification files and return the tests to run and skip.</fsummary>
      <type>
        <v>SpecsIn = [string()] | [[string()]]</v>
        <v>Specs = [string()]</v>
        <v>Test = [{Node,Run,Skip}]</v>
        <v>Node = atom()</v>
        <v>Run = {Dir,Suites,Cases}</v>
        <v>Skip = {Dir,Suites,Comment} | {Dir,Suites,Cases,Comment}</v>
        <v>Dir = string()</v>
        <v>Suites = atom | [atom()] | all</v>
        <v>Cases = atom | [atom()] | all</v>
        <v>Comment = string()</v>
        <v>Reason = term()</v>
      </type>
      <desc><marker id="add_nodes-1"/>
        <p>Parse the given test specification files and return the
        tests to run and skip.</p>

        <p>If <c>SpecsIn=[Spec1,Spec2,...]</c>, separate tests will be
        created per specification. If
        <c>SpecsIn=[[Spec1,Spec2,...]]</c>, all specifications will be
        merge into one test.</p>

        <p>For each test, a <c>{Specs,Tests}</c> element is returned,
        where <c>Specs</c> is a list of all included test
        specifications, and <c>Tests</c> specifies actual tests to
        run/skip per node.</p>
      </desc>
    </func>

  </funcs>

</erlref>