Carna

Reporters

XmlFixtureReporter

Reports fixture running results with XML format to the file.

options

outputPath

Specifies the output path of the XML file. The default value is "Results.xml".

For example:

{
    "reporters": [
        {
            "reporter": {
                "type": "Carna.Runner.Reporters.XmlFixtureFormatter",
                "options": {
                    "outputPath": "Results\\Results.xml"
                }
            }
        }
    ]
}

ConsoleFixtureReporter

Reports fixture running results on the console. This is contained in the "carna-runner" assembly (for .NET Tool) or the "Carna.ConsoleRunner" assembly (for .NET).

options

full

Specifies the value that indicates whether to report the description of the assembly and namespace. The default value is false.

stepVisible

Specifies the value that indicates whether to report the description of the fixture step. The default value is false.

statusVisible

Specifies the value that indicates whether to report the status. The default value is true.

For example:

(.NET Tool)

{
    "reporters": [
        {
            "reporter": {
                "type": "Carna.ConsoleRunner.Reporters.ConsoleFixtureReporter,carna-runner",
                "options": {
                    "full": true,
                    "stepVisible": true,
                    "statusVisible": false
                }
            }
        }
    ]
}

(.NET)

{
    "reporters": [
        {
            "reporter": {
                "type": "Carna.ConsoleRunner.Reporters.ConsoleFixtureReporter,Carna.ConsoleRunner",
                "options": {
                    "full": true,
                    "stepVisible": true,
                    "statusVisible": false
                }
            }
        }
    ]
}