Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ct_run & spec file with groups runs all tests #9320

Open
fregate opened this issue Jan 21, 2025 · 1 comment
Open

ct_run & spec file with groups runs all tests #9320

fregate opened this issue Jan 21, 2025 · 1 comment
Assignees
Labels
bug Issue is reported as a bug priority:low team:PS Assigned to OTP team PS

Comments

@fregate
Copy link
Contributor

fregate commented Jan 21, 2025

Describe
I have some application, tests and spec file to run different tests for different profiles (in rebar3). And if I have more than one suite I cannot run only one specified group of tests in all test suites. In spec file I described group {groups, 'This', [platform_SUITE, unit_SUITE], unit_tests}. which I want to run in tests. So If I specify only one (any) suite - it runs only tests in unit_tests group, but if I specify all or group of suites - it run all tests in its.

Erlang/OTP 28 [DEVELOPMENT] [erts-15.2] [source-52b82ede8b] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:1] [jit:ns]

Common Test starting (cwd is /.../myapp)

Common Test: Running make in test directories...
Recompile: platform_SUITE
Eshell V15.2 (press Ctrl+G to abort, type help(). for help)
Recompile: unit_SUITE

CWD set to: "/.../myapp/_build/x/[email protected]_16.48.30"

TEST INFO: 2 test(s), 5 case(s) in 2 suite(s)

Testing apps.myapp.platform_SUITE: Starting test, 3 test cases

Has to be only 1 test (1 test in unit_tests group)

and for unit_SUITE

Testing apps.myapp.unit_SUITE: Starting test, 2 test cases

To Reproduce
Run ct_run -spec spec/unit.ct.spec in app dir.

myapp.zip

Expected behavior
Run only specified group test in specified suites.

Affected versions
Erlang/OTP 25 [erts-13.2.2.5] - main
Erlang/OTP 28 [DEVELOPMENT] [erts-15.2] [source-52b82ede8b] - from github master

@fregate fregate added the bug Issue is reported as a bug label Jan 21, 2025
@IngelaAndin IngelaAndin added the team:PS Assigned to OTP team PS label Jan 21, 2025
@u3s
Copy link
Contributor

u3s commented Jan 22, 2025

yes. looks like a bug indeed. thanks for report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is reported as a bug priority:low team:PS Assigned to OTP team PS
Projects
None yet
Development

No branches or pull requests

3 participants