Git Product home page Git Product logo

Comments (2)

TotalTest avatar TotalTest commented on May 30, 2024

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.

testifyqa avatar testifyqa commented on May 30, 2024

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 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.