Skip to content

Provides visualization for unit test results using xUnit and Kibana.

License

Notifications You must be signed in to change notification settings

Jandini/KiBoards

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KiBoards

Build NuGet

Provides visualization of unit test results using Elasticsearch and Kibana for Xunit test framework.

Quick Start

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 the using statements and before the namespace 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]:

kiboards

The dashboards are created in separate Kibana's space called KiBoards.


Created from JandaBox

About

Provides visualization for unit test results using xUnit and Kibana.

Resources

License

Stars

Watchers

Forks

Packages

No packages published