ct_testspec(3erl)
π NAME π
ct_testspec β literally parsing of test specifications for Common Test. That's it, that's the name, and this is the Erlang Module Definition page for ct_testspec(3erl). π
β¨ DESCRIPTION β¨
Parsing of test specifications for Common Test.
This module exports help functions for parsing of test specifications. It's giving "small but essential support module," and honestly? Obsessed. π«Ά
π EXPORTS π
π get_tests π
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()
Okay so get_tests/1 parses the given test specification files and returns the tests to run and skip. Main character behavior, no cap. π₯
Here's the vibe check on how SpecsIn works:
- If
SpecsIn=[Spec1,Spec2,...], separate tests will be created per specification. Each spec gets its own little moment. π« - If
SpecsIn=[[Spec1,Spec2,...]], all specifications will be merge into one test. Yes bestie, one big merged test situation. π«Ά
For each test, a {Specs,Tests} element is returned, where Specs is a list of all included test specifications, and Tests specifies actual tests to run/skip per node. Literally the whole receipts list. π§Ύβ¨
Test = [{Node,Run,Skip}]is right there in the types, andSkipcan be{Dir,Suites,Comment}or{Dir,Suites,Cases,Comment}. Keep those exact shapes, iykyk. π
Brought to you by Ericsson AB, common_test 1.24.0.1, and the ct_testspec(3erl) footer energy. Slay, and read the types carefully. πππ¦
π¦ where this page comes from
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4 Β· Apache-2.0
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4.8 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms