C# Class MSTestAllureAdapter.AllureAdapter

The base class for the Allure adapter.
Mostrar archivo Open project: allure-framework/allure-mstest-adapter

Public Methods

Method Description
GenerateTestResults ( IEnumerable testResults, string resultsPath ) : void

Generates the test results from the supplied TRX file to be used by the allure framework.

Protected Methods

Method Description
HandleTestResult ( MSTestResult testResult ) : void
TestFailed ( MSTestResult testResult ) : void
TestFinished ( MSTestResult testResult ) : void
TestStarted ( string suitId, MSTestResult testResult ) : void
TestSuitFinished ( string uid, System.DateTime finished ) : void
TestSuitStarted ( string uid, string name, System.DateTime start ) : void

Private Methods

Method Description
AllureAdapter ( ) : System
CreateSuitToTestsMap ( IEnumerable testResults ) : ICollection>.IDictionary
FormatDescription ( MSTestResult testResult ) : string
HandleAllureTestCaseResult ( string suitUid, MSTestResult testResult ) : void

Method Details

GenerateTestResults() public method

Generates the test results from the supplied TRX file to be used by the allure framework.
public GenerateTestResults ( IEnumerable testResults, string resultsPath ) : void
testResults IEnumerable
resultsPath string Results path where the files shuold be saved.
return void

HandleTestResult() protected method

protected HandleTestResult ( MSTestResult testResult ) : void
testResult MSTestResult
return void

TestFailed() protected method

protected TestFailed ( MSTestResult testResult ) : void
testResult MSTestResult
return void

TestFinished() protected method

protected TestFinished ( MSTestResult testResult ) : void
testResult MSTestResult
return void

TestStarted() protected method

protected TestStarted ( string suitId, MSTestResult testResult ) : void
suitId string
testResult MSTestResult
return void

TestSuitFinished() protected method

protected TestSuitFinished ( string uid, System.DateTime finished ) : void
uid string
finished System.DateTime
return void

TestSuitStarted() protected method

protected TestSuitStarted ( string uid, string name, System.DateTime start ) : void
uid string
name string
start System.DateTime
return void