otp
otp copied to clipboard
Documentation for Test case groups has a missing case in its def. of the syntax
The documentation in Section 5.8 Test Case Group declares the syntax to be the following:
groups() -> GroupDefs
Types:
GroupDefs = [GroupDef]
GroupDef = {GroupName,Properties,GroupsAndTestCases}
GroupName = atom()
GroupsAndTestCases = [GroupDef | {group,GroupName} | TestCase |
{testcase,TestCase,TCRepeatProps}]
TestCase = atom()
TCRepeatProps = [{repeat,N} | {repeat_until_ok,N} | {repeat_until_fail,N}]
This misses the case where GroupsAndTestCases allows also calls to functions, as in {https, [], [def_ssl_opt | real_requests()]}, in httpc_SUITE.erl.
To Reproduce It is documentation
Expected behavior
I expected the syntax of GroupsAndTestCases to include function calls
Affected versions OTP 23, 24, 25 (AFAIK)