Skip to content

johnshaw1000/BDD-Parallel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BDD-Parallel

Proof of concept to run SpecFlow features in parallel

Proof of Concept

The idea being tested is running SpecFlow tests in parallel.

This is facilitated by using the parallel test features of NUnit 3, currently in beta. This is working fine, though parallel tests are supported only at class level, not individual tests.

In SpecFlow this translates as features. Being limited to running features, rather than individual tests, is a little resticting, but not not much. Lots of benefit can be gained by running features in parallel and may even have a desired side-effect of keeping features short.

Thread safety.

There is a problem with SpecFlow. Though it does run in parallel, there appear to be some thread safety issues around context storage between steps.

Issue 448 is open for this on the TechTalk SpecFlow site.

Running

BackgroundTask

This is a very simple RESTful web service that responds after a given duration (milliseconds). This needs to be running in VisualStudio or published to IIS. In theory is could be published to an Azure web role - I haven't tried.

BackgroundTaskTests

These are SpecFlow features and scenarios to demonstrate running features in parallel.

They don't do much, not much at all. But you will see three tests running at the same time - one for each feature file.

About

Proof of concept to run SpecFlow features in parallel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published