boostorg / boostorg/test

Feature Request: BOOST_DATA_TEST_CASE with descriptive identifiers

Open
#326 1 comment 0 reactions 1 assignee Claimed by @raffienficiaud View on GitHub
discussion question
Dominant language
C++
Stars
213
Forks
149
Avg merge
18h 17m
Merged PRs (30d)
2

Description

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

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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.