Feature Request: BOOST_DATA_TEST_CASE with descriptive identifiers

Open
#326 1 comment 0 reactions 1 assignee View on GitHub

@raffienficiaud is already working on this.

Since Feb 27, 2022.

Assessment

This issue has not been assessed yet.

Description

discussion question

would it be possible for there to exist a variant of BOOST_DATA_TEST_CASE where something like


BOOST_DATA_TEST_CASE(my_data_test_case,
                       boost::unit_test::data::make({EMyEnum::val1, EMyEnum::val2, EMyEnum::val3}),
                       values)
{
    //Do Something
}

Could be identified using a syntax like

my_data_test_case/val1
my_data_test_case/val2
my_data_test_case/val3

or

my_data_test_case(val1)
my_data_test_case(val2)
my_data_test_case(val3)

instead of

my_data_test_case/_0
my_data_test_case/_1
my_data_test_case/_2

within the output from the test suite where val1, val2, val3, etc. represent the value produced by the given member of the dataset when using the insertion operator?

Dominant language
C++
Stars
213
Forks
149
Avg merge
18h 17m
Merged PRs (30d)
2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from boostorg/test

All issues in boostorg/test

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.