Test Miner was designed to parse NUnit3 Test Reports and store the results into a Relational Database.
The Database would provide users with the means to historically track and monitor trends of Test Results.
Simple Flow:
---
config:
theme: redux-dark
look: classic
layout: fixed
---
flowchart LR
A(["Start with"]) --> B["NUnit Report"]
B --> C["Test Miner"]
C --> D["Database"]
B@{ shape: out-in}
D@{ shape: db}
| Prerequisite | Note |
|---|---|
| .NET8 SDK | .NET8 or greater required. Check current .NET version dotnet --version.Download .NET8 here. |
| SQL Server | The Database template can be found within this repository here. Download SQL Server Express here. You're on the hook to pay for the storage. 😂 |
| NUnit3 Test Results | The NUnit3 Test Results must be in XML format. Use --result=TestResult.xml;format=nunit3 when executing tests. |
Specify the following commands & arguments:
Mine Test Report files to the Database.
mine [parameters]| Argument | Description | Default | Required |
|---|---|---|---|
--reports <filePath> |
File paths of the NUnit3 Test Report files to upload ("mine") to the Database. Can specify multiple file paths. |
— | Yes |
--connection <connectionString> |
The Connection String to the Database. | — | No |
TestMiner.exe mine --reports "C:\SampleData\TestResults1.xml" --connection "Server=localhost\\SQLEXPRESS;Database=TestMiner;"Saves the Database Connection String locally.
save [parameters]| Argument | Description | Default | Required |
|---|---|---|---|
--connection <connectionString> |
The Connection String to the Database. | — | Yes |
TestMiner.exe save --connection "Server=localhost\\SQLEXPRESS;Database=TestMiner;"The Database project exists at TestMiner.Database; you can publish this Database to your own SQL Server instance.
I have included guidance on how to deploy the Database to localhost for testing (with Docker) here
A Windows application exists that wraps all the CLI functionality in a GUI format, TestMiner.Windows.
- Unit Testing
- Component Testing
- Integration Testing
- Mutation Testing

