Provides visualization of unit test results using Elasticsearch and Kibana for Xunit test framework.
In just a few simple steps, you can have your unit test results stored in Elasticsearch.
-
Create a new Xunit test project.
-
Add the KiBoards NuGet package to the project.
-
Include the Xunit test framework attribute
[assembly: TestFramework("KiBoards.TestFramework", "KiBoards.Xunit")]
in your project. Place the attribute only once, in any class, right after theusing
statements and before thenamespace
declaration. -
The initial unit test class will resemble this:
[assembly: TestFramework("KiBoards.TestFramework", "KiBoards.Xunit")] namespace Tests { public class UnitTest1 { [Fact] public void TestSomething() { // Your test logic goes here } } }
Now, after your unit tests are executed, the results are saved to the Elasticsearch host defined by the KIB_ELASTICSEARCH_HOST
variable, with a default value of http://localhost:9200.
You can specify KIB_KIBANA_HOST
to automatically build Kibana dashboards like in the example below [http://10.120.235.20:5601]:
The dashboards are created in separate Kibana's space called KiBoards.
Created from JandaBox