NUnit Integration
Report NUnit test results to HP ALM via Bumblebee.
Overview
NUnit generates XML test reports that Bumblebee processes and publishes to HP ALM. Both NUnit 2 and NUnit 3 report formats are supported.
Generating NUnit Reports
.NET CLI (NUnit 3)
NUnit Console Runner
MSBuild / Visual Studio
Add the NUnit3TestAdapter package to your test project:
Run with:
Or configure a custom NUnit result file logger in your .runsettings:
Jenkins Pipeline
NUnit 2 vs NUnit 3
Bumblebee automatically detects the NUnit report format version. No additional configuration is needed.
| Feature | NUnit 2 | NUnit 3 |
|---|---|---|
| Report format | <test-results> root | <test-run> root |
| Nested suites | Supported | Supported |
| Attachments | Not supported | Supported |
| Categories | Supported | Supported |
ALM Test Case Naming
NUnit test cases are mapped to ALM using:
- Test Plan path:
Subject\<namespace>.<className> - Test case name:
<methodName>
Configure classNameMapping in alm-mappings.xml to strip namespace prefixes if desired.