Comments (2)
Hi, although you are able to set 'variant' tags at the feature level, the intention was to always treat these scenario variants and not feature variants. i.e. the scenarios are run per variant. The way it's done under the hood to achieve this directly works with scenarios and would be a complete overhaul if we had to support variant features. The tagging of the features is just to simplify tagging all individual scenarios.
There's also potential limitations on the unit test frameworks this package supports, for example if we're talking about a simple unit test then MsTest allows a DataRow attribute on a method (scenario) and you could drive variants that way, but you can't do the same at the class level (feature).
Feel free to fork the repo if you think there's a way to achieve your need. But on my analysis this won't be possible.
from specflow.contrib.variants.
Thank you for your response.
I had a quick look at the src code and from what I could see I think I agree with your analysis.
I used BeforeFeature hooks for initial Appium driver instantiations along with isFullReset=false and isNoReset=true capabilities set.
I was looking at using SpecFlow+ Runner along with Targets but there are issues getting it to work in any IDE on macOS which is why I switched to NUnit.
I guess due to this, I will try and move my Feature hooks to the scenario level.
Anyways, cheers for the explanation.
from specflow.contrib.variants.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from specflow.contrib.variants.