ghpreporter / ghpr.mstestv2 Goto Github PK
View Code? Open in Web Editor NEWAdapter for MSTestV2 (generate HTML report for MSTestV2)
Home Page: https://ghpreporter.github.io/
License: MIT License
Adapter for MSTestV2 (generate HTML report for MSTestV2)
Home Page: https://ghpreporter.github.io/
License: MIT License
I have implemented the Ghpr.Console.exe with my builds in azure devops.
When I try to launch the Ghpr.Console.exe on a trx file with just 1 UI test, that’s perfect, the report is present in the folder defined in the Ghpr.MSTestV2.Settings.json file :
But, when I try to launch the Ghpr.Console.exe on a trx file with all the tests (UI and units), the command return that the report is generated, but the folder is empty :
I've added in attachments the “TestResults” folder with the TRX file...
Hi @elv1s42,
I have managed to set up real-time reporting with NUnit and I was wondering whether the same is possible with MSTest (or MSTestV2). Is it possible that if I run my tests via vstest console/MSTest.exe, the report will be generated (the same way as with nunit3-console)? I also managed to make MSTest with imported .trx files work (with Ghpr.Console) and I am not sure whether I am missing something or it is not possible yet.
Thank you in advance!
I got the trx file generated from the MSTestV2.Examples....
So now I run the Ghrp.Console.exe MyTrxFile.trx and no output is created. I copied the examples json file to the bin dir where the console exe is and still nothing.
Ghpr.MSTestV2.Settings.json
{
"outputPath": "C:\\Users\\charbaugh\\source\\repos\\Ghpr.MSTestV2.Examples\\Ghpr.MSTestV2.Examples\\bin\\Debug\\_GHPReporter_MSTest_Report",
"dataServiceFile": "Ghpr.LocalFileSystem.dll",
"loggerFile": "",
"sprint": "",
"runName": "",
"runGuid": "",
"realTimeGeneration": "True",
"runsToDisplay": "5",
"testsToDisplay": "5",
"retention": {
"amount": 1000,
"till": "2020-04-20 10:00:00"
}
}
I get this response from the console....
C:\Users\charbaugh\Source\Repos\Ghpr.MSTestV2.Examples\Ghpr.MSTestV2.Examples\bin\Debug> .\Ghpr.Console.exe "C:\Users\charbaugh\source\repos\Ghpr.MSTestV2.Examples\Ghpr.MSTestV2.Examples
\TestResults\charbaugh_DESKTOP-JKJ05HC_2020-04-16_00_05_15.trx"
Generating the report for the file 'C:\Users\charbaugh\source\repos\Ghpr.MSTestV2.Examples\Ghpr.MSTestV2.Examples\TestResults\charbaugh_DESKTOP-JKJ05HC_2020-04-16_00_05_15.trx'...
Unhandled Exception: System.ArgumentNullException: Value cannot be null.
Parameter name: source
at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
at Ghpr.Core.Factories.ReporterFactory.InitializeReporter(ReporterSettings settings, ITestDataProvider testDataProvider, String projectName)
at Ghpr.MSTestV2.Utils.GhprMSTestV2RunHelper.CreateReportFromFile(String path, ITestDataProvider dataProvider)
at Ghpr.Cli.Program.Main(String[] args)
Because of all the necessary configurations I would expect a ps/bat script with the examples so we can have a working example without having to go through the source code. I love the reports demo and is why I'm here! Great work.
I have some screenshots attached to my tests, so I would like to have also these screenshots in the GHPR report please.
Regards,
Yannick
Such kind of tests should be displayed correctly in the report
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.