Coder Social home page Coder Social logo

ghpreporter / ghpr.mstestv2 Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 84 KB

Adapter for MSTestV2 (generate HTML report for MSTestV2)

Home Page: https://ghpreporter.github.io/

License: MIT License

C# 100.00%
mstestv2 testing qa quality-assurance microsoft qatools qa-automation-test reporting reporting-engine reporting-project

ghpr.mstestv2's People

Contributors

dependabot-support avatar elv1s42 avatar mend-bolt-for-github[bot] avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

t0mjones

ghpr.mstestv2's Issues

Report marked as "generated" but not present in the folder

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 :

json

cmd1

folder1

report1

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 :

cmd2

report2

I've added in attachments the “TestResults” folder with the TRX file...

Report.7z.001.zip
Report.7z.002.zip
Report.7z.003.zip

MSTestV2 real-time reporting

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!

Working MSTestV2 Example

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.

Screenshots required in the report

I have some screenshots attached to my tests, so I would like to have also these screenshots in the GHPR report please.

Regards,

Yannick

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.