We are facing an issue generating and publishing the test result report in Azure DevOps.
Our current workflow is to build .net projects and run tests within a docker container. Therefore, we use the LivingDoc CLI tool to generate the TestExecution.json file. This is all good. We also export the file out of the container so that it is available in the Azure DevOps pipeline.
The last step is a SpecFlowPlus@0 task in Azure DevOps. This idea (maybe we got it wrong and it is not possible) is to use the already generated TestExecution.json, together with the feature folder to publish a report to the specflow hub.
Unfortunately, the task ends in error (TargetInvocationException and NullReferenceException). We have tried with different versions of dotnet core on the build agent but same error. The yaml task definition looks like the one below.
Any help would be greatly appreciated.
- task: SpecFlowPlus@0
projectFilePath: '<path to the source feature folder>'
projectName: '<our project name>'
testExecutionJson: '<path of TestExecution.json>'
Please sign in to leave a comment.