Skip to content
New issue

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

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

Already on GitHub? # to your account

Test annotations #4

Open
griwes opened this issue Jul 6, 2016 · 0 comments
Open

Test annotations #4

griwes opened this issue Jul 6, 2016 · 0 comments
Assignees
Milestone

Comments

@griwes
Copy link
Member

griwes commented Jul 6, 2016

We need to support test annotations; the initial form is supposed to work just as tags, but later


Bikeshedding syntax proposal:

MAYFLY_ADD_TESTCASE("foo [basic] [!all]", []()
{
    MAYFLY_REQUIRE(false);
});

Required futures:

  • ./test-binary implicitly runs everything in [all]; require an explicit annotation of [!all] to exclude from execution by default
  • ./test-binary -a basic runs all tests in [basic]
  • ./test-binary -a '!basic' runs all tests but those in [basic]
  • ./test-binary -a basic -a parallel runs all tests in [basic] and all tests in [parallel]
  • ./test-binary -a 'basic+parallel' runs all tests that are tagged with both [basic] and [parallel]
@griwes griwes added this to the Release v0.2 beta milestone Jul 6, 2016
@griwes griwes self-assigned this Jul 6, 2016
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

No branches or pull requests

1 participant