How To Specify Test Name Parsing
There are 2 options for parsing test names:
1. The delimiter used to split test list names
2. Putting the test list names in the classname
or the name
of the testcase.
Split On
Expecto uses .
by default to split test list names:
My Test List.My Nested Test List.My Test Case
But it can be configured to use /
. By default, the test logger will split that test name on .
, but you can specify any string to be the delimiter.
Specify the delimiter using SplitOn
:
1:
|
|
Name Format
Junit reports have 2 fields in testcase
:
1:
|
|
classname
will populate the Suite
column in Gitlab's test reports, while name
will be the test name. When the test is not in a list, both values will be the name of the test. When a test is contained in a single list, then the classname will be the list name and the name will be the test name.
When a test is in multiple lists, like this:
1: 2: 3: 4: 5: 6: 7: 8: |
|
The logger will need to decide where to put More tests
- is that part of the test name, or part of the suite name? This is configurable by the NameFormat
argument, with options of RootList
or AllLists
.
RootList
will put only the root list as the Suite name:
1:
|
|
AllLists
will put all lists in the Suite name:
1:
|
|