Generate Reports

From Command-line

When you run VSTest from the command line, you can generate a trx report using the /Logger:trx option, as follows:

vstest.console.exe path\to\myProject.Test.dll /Settings:path\to\mySettings.runsettings /Logger:trx

You can find more information on how to get the different loggers here.

You can use multiple loggers at the same time:

/Logger:trx /Logger:xunit

From RunSettings

You can provide the loggers using the RunSettings like this:

<RunSettings>
    <LoggerRunSettings>
        <Loggers>
            <Logger friendlyName="trx" />
            <Logger friendlyName="xunit" />
        </Loggers>
    </LoggerRunSettings>
</RunSettings>

You can find more information here.

Last updated