Go to main content

man pages section 3: Extended Library Functions, Volume 1

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

ct_testspec (3erl)

Name

ct_testspec - Parsing of test specifications for Common Test.

Synopsis

Please see following description for synopsis

Description

ct_testspec(3)             Erlang Module Definition             ct_testspec(3)



NAME
       ct_testspec - Parsing of test specifications for Common Test.


DESCRIPTION
       Parsing of test specifications for Common Test.

       This module exports help functions for parsing of test specifications.

EXPORTS
       get_tests(SpecsIn) -> {ok, [{Specs,Tests}]} | {error, Reason}

              Types:

                 SpecsIn = [string()] | [[string()]]
                 Specs = [string()]
                 Test = [{Node,Run,Skip}]
                 Node = atom()
                 Run = {Dir,Suites,Cases}
                 Skip = {Dir,Suites,Comment} | {Dir,Suites,Cases,Comment}
                 Dir = string()
                 Suites = atom | [atom()] | all
                 Cases = atom | [atom()] | all
                 Comment = string()
                 Reason = term()

              Parse the given test specification files and return the tests to
              run and skip.

              If SpecsIn=[Spec1,Spec2,...], separate tests will be created per
              specification.  If  SpecsIn=[[Spec1,Spec2,...]],  all specifica-
              tions will be merge into one test.

              For each test, a {Specs,Tests} element is returned, where  Specs
              is  a list of all included test specifications, and Tests speci-
              fies actual tests to run/skip per node.



Ericsson AB                    common_test 1.22                 ct_testspec(3)