Skip to content

Provide a way to specify the test name for a data row test #456

@stecydube

Description

@stecydube

Description

Currently, MSTest V2 constructs the name of the test using the specified parameters and this can be very long for some scenario and also not intention revealing about the actual sub test being performed.

It would be better to have a way to specify the name for a test.

Steps to reproduce

Expected behavior

DataRow(1,2,3,TestName="Sequential numbers")
DataRow(2,4,6,TestName="Even numbers")

should display
Test Passed - Sequential numbers
Test Passed - Even numbers

Actual behavior

DataRow(1,2,3)
DataRow(2,4,6)

Test Passed - TestSomeNumbers (1,2,3)
Test Passed - TestSomeNumbers (2,4,6)

Environment

MSTest V2

Metadata

Metadata

Assignees

Labels

area/documentationRepository or user-facing documentation.resolution/fixedClosed: fix has been merged.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions