-
Notifications
You must be signed in to change notification settings - Fork 1
Quick Start
sam.gerene edited this page Nov 8, 2022
·
3 revisions
Install the VCD-Generator as a dotnet tool
dotnet tool install --global vcdg
Annotate your NUnit tests with the Test
attribute including a Property
key-value pair,
- Key:
REQUIREMENT-ID
- Value: the unique identifier of your requirement listed in the input requirements spreadsheet
[TestFixture]
public class ACoolTestFixture()
{
[Test(Description = "a very fancy test"), Property("REQUIREMENT-ID", "REQ-01")]
public void Some_fance_test()
{
// ... test test test
}
}
Note Make use of the
Property
attribute which provides a key-value pair. For the VCD-Generator to work provide at least the followingProperty("REQUIREMENT-ID", "your-requirement-id")
Run the unit tests using the following command:
dotnet test VCD-Generator.sln --logger:"nunit;LogFilePath=TestResults/{assembly}.Result.xml" -- NUnit.ShowInternalProperties=true
Run the vcdg
tool and generate the report
vcdg -rf VCD-Generator.Tests/Data/Requirements.xlsx --requirements-sheet-name requirements --requirements-id-column Identifier --requirements-text-column "Requirement Text" --source-directory . --output-report vcd-report.xlsx
Open the vcd-report.xlsx file and put a smile on your face
copyright @ Starion Group S.A.