Giter VIP home page Giter VIP logo

mmajcica / specflowreportgeneratortask Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 918 KB

VSTS extension that provides a build release task that Generates SpecFlow test execution reports in HTML format.

Home Page: http://blog.majcica.com/2018/05/07/living-documentation-and-test-reports-in-vsts-tfs-pipelines/

License: Other

JavaScript 0.82% PowerShell 99.18%
specflow trx tfs vsts vsts-marketplace vsts-extension vsts-task

specflowreportgeneratortask's Introduction

Report Generator for SpecFlow

Overview

This extension will add a Build/Release task in your TFS/VSTS instance that will allow you to generate SpecFlow test execution reports. Task ships with the necessary SpecFlow executable files.

Requirements

No specific requirements are present for this task to run.

Parameters

The different parameters of the task are explained below:

  • Test Execution Report type: Three different types of reports are supported, MsTest Execution Report, NUnit Execution Report and Step Definition Report.
  • Project File: A path of the project file containing the feature files. This is a mandatory parameter.
  • NUnit XML test result file: Shown only in case of NUnit Execution Report type. The XML test result file generated by nunit-console.
  • NUnit test output file: Shown only in case of NUnit Execution Report type. The labelled test output file generated by nunit-console. Default vale is: TestResult.txt.
  • MsTest test result (trx) file: Shown only in case of MsTest Execution Report type. The TRX test result file generated by MsTest.
  • A bin folder path: Shown only in case of Step Definition Report type. A path for the compiled SpecFlow project. Default: bin\Debug.
  • Xslt File: Custom XSLT file to use, defaults to built-in stylesheet if not provided.
  • Output File: Generated Output File. Default: StepDefinitionReport.html and is going to be persisted in AGENT_BUILDDIRECTORY in case of a build, meanwhile in case of a release it is going to be placed in AGENT_RELEASEDIRECTORY

Release notes

  • 1.0.4 - Updated documentation
  • 1.0.3 - Renamed the extension and the task - #1136
  • 1.0.2 - Minor adjustments to the extension. No changes for the task.
  • 1.0.1 - Adjusted the license terms and changed the icons
  • 1.0.0 - Initial Release - Ships with SpecFlow 2.3.1

Contributing

Feel free to notify any issue in the issues section of this GitHub repository. In order to build this task, you will need Node.js and gulp installed. Once cloned the repository, just run 'npm install' then 'gulp package' and in the newly created folder called _packages you will find a new version of the extension.

specflowreportgeneratortask's People

Contributors

mmajcica avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

specflowreportgeneratortask's Issues

Report Generation does not work anymore with SpecFlow 3

Hi,

I get the following error when I want to generate html report from trx file:

Consoler.NConsolerException: Object reference not set to an instance of an object. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at TechTalk.SpecFlow.Configuration.JsonConfig.JsonConfigurationLoader.LoadJson(SpecFlowConfiguration specFlowConfiguration, String jsonContent)
   at TechTalk.SpecFlow.Configuration.ConfigurationLoader.Load(SpecFlowConfiguration specFlowConfiguration, ISpecFlowConfigurationHolder specFlowConfigurationHolder)
   at TechTalk.SpecFlow.Generator.Configuration.GeneratorConfigurationProviderExtensions.LoadConfiguration(IGeneratorConfigurationProvider configurationProvider, SpecFlowConfigurationHolder configurationHolder)
   at TechTalk.SpecFlow.Generator.Project.MsBuildProjectReader.LoadAppConfig(SpecFlowProject specFlowProject, XDocument xDocument, String projectFolder, Boolean newProjectSystem)
   at TechTalk.SpecFlow.Generator.Project.MsBuildProjectReader.ReadSpecFlowProject(String projectFilePath)
   at TechTalk.SpecFlow.Reporting.NUnitExecutionReport.NUnitBasedExecutionReportGenerator.GenerateAndTransformReport()
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at NConsoler.Consolery.InvokeMethod(MethodInfo method)
   --- End of inner exception stack trace ---
   at NConsoler.Consolery.InvokeMethod(MethodInfo method)
   at NConsoler.Consolery.Run(Type targetType, String[] args, IMessenger messenger)

##[error]Cannot bind argument to parameter 'Path' because it is an empty string.

Hi
I am getting the below error when i run Generate Specflow report.

"##[error]Cannot bind argument to parameter 'Path' because it is an empty string."

Note:
Tasks configured as below --

  1. Visual Studio Build
  2. Visual Studio Test
  3. Report Generator for Specflow
  4. Publish Test Results

I have attached screenshot to the settings - I have used within Report Generator task.
error
error12

Column "Feature" empty

Hi,

Thanks for this extension.

I have an issue with the report. Please see below:

image

Do you have an idea about the column "Feature" being empty?

Thank you

Regards,

Bertrand

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.