Skip to content

pavlobcn/SpecFlowMaster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 

Repository files navigation

SpecFlowMaster

Tool for SpecFlow test analysis and improvements

This is a plugin for Specflow

It allows to find statements in test scenarious that do not affect tests. For example, it can find suspicious line that can be safely removed from test and test will be still green.

This plugin can improve quality of SpecFlow tests. Very usefull during refactoring as it can help to identify problem lines in your tests.

Examples

Solution contains Examples for different test providers, languages and platforms.

Support

  • .NET Framework 4.7.1, .NET Core 2.0 and higher
  • Specflow 3.0 and higher
  • C# and VB

Usage

Do the following steps in your test project:

  1. Add nuget package SpecFlowMaster. Note: if you want to do it in an existing project then you must remove references to Specflow.*.SpecflowPlugin.
  2. Add nuget package SpecFlow.Tools.MsBuild.Generation.
  3. You can configure testing famework for generated files by adding specflowmaster.json file. See Examples
  4. Executes tests and find failed tests in classes named XXXFeatureMaster. Exeption and test name will help you to find problems in your tests.
  5. If want to ignore some tests generated by plugin you can use special commands #IgnoreMasterFeature, #IgnoreMasterScenario, #IgnoreMasterStep.

Notes

  1. Currently this plugin does not handle correctly tests that use hooks by attributes like BeforeFeature, AfterScenario etc.
  2. For xUnit tests you need to add attribute for disaling test parrallelization [assembly:CollectionBehavior(DisableTestParallelization = true)]

About

Tool for SpecFlow test analysis and improvements

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published