otp icon indicating copy to clipboard operation
otp copied to clipboard

doc: add missing syntax case to Test Case Groups

Open kikofernandez opened this issue 2 years ago • 1 comments

ThisPR adds a missing case on how to write test case groups. The missing case is that one can perform function calls at any point of the test case group as long as the result of the function call returns aGroupsAndTestCases` (Syntax for the Erlang TestCaseGroup docs). The following example follows, which is also used in the OTP code:

groups() ->
    [
     {http, [], real_requests()}
   ]

kikofernandez avatar Oct 07 '22 07:10 kikofernandez

CT Test Results

    2 files    58 suites   1h 26m 23s :stopwatch: 442 tests 430 :heavy_check_mark: 12 :zzz: 0 :x: 476 runs  461 :heavy_check_mark: 15 :zzz: 0 :x:

Results for commit e072e71c.

:recycle: This comment has been updated with latest results.

To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass.

See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally.

Artifacts

// Erlang/OTP Github Action Bot

github-actions[bot] avatar Oct 07 '22 08:10 github-actions[bot]

thanks for the feedback @bjorng , I made the appropriate changes :)

kikofernandez avatar Oct 21 '22 07:10 kikofernandez