Comments (4)
Hi,
https://github.com/LightBDD/LightBDD/wiki/Tests-Structure-and-Conventions contains insights on how to ignore tests on class, scenario and step level.
https://github.com/LightBDD/LightBDD/wiki/What-Is-New#lightbdd-311 contains additional insights on how to skip scenarios with InlineData (xunit)
from lightbdd.
Thanks for the links - I've read through them and I cant see anything on dynamically skipping tests at runtime. As far as I can tell the documentation talks about statically skipping tests with the Skip = "{skip reason}
, or using the IgnoreScenario
attribute to again statically ignore a test. What I'm looking to do is Skip based on some runtime check, eg
[SkippableScenario]
public void MyTest()
{
if(someRuntimeCheck)
throw new SkipTestException("This has been skipped because of X");
...{Test Code}...
}
...just like XUnit's SkippableTheory
supports.
My use case is that my Component tests can run using either fakes or with real dependencies. We use header forwarding to control the outputs of fake dependencies in cases where we want to test bad responses from them. We can't do that for the real dependencies, so we want to have a config setting "UsingRealDependencies" that, when enabled, those specific tests are skipped for.
from lightbdd.
It is in first link, Steps behaviour section. StepExecution.Current.IgnoreScenario()
from lightbdd.
It is in first link, Steps behaviour section. StepExecution.Current.IgnoreScenario()
Ah, my apologies - I missed that. Thank you, that's exactly what I need.
from lightbdd.
Related Issues (20)
- Support for verifiable parameters in scenarios
- Support for generic features and scenarios
- Automatic representation of complex parameters as InputTree
- Document 4.x execution pipeline HOT 1
- Simplify MetadataProvider implementation HOT 1
- Revisit DI to simplify implementation and enable core dependencies to leverage it HOT 2
- Searchbar In Test Report HOT 1
- Rework configuration system to leverage DI for registered components HOT 1
- Simplify test projects
- Implement configurable scenario execution scheduler HOT 1
- Update logo for 4.x
- Question: Is it possible to scope Global Setup\Teardown to a namespace HOT 2
- Internal Classes For HtmlReportFormatter And Others Highly Limits Reuse/Customisation HOT 1
- Feature: support for scenario descriptions analogous to feature descriptions HOT 3
- Add Generic extension Resolve<T> overload to IDepdencyResolver HOT 1
- Test Run Teardown Failure HOT 1
- Granular control of which field are included in VerifiableTree expectation HOT 5
- Allow IReportFormatter and IGlobalResourceSetUp implementations to use LightBDDConfigurationAware HOT 1
- ScenarioDescription for LightBDD 4.x
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 lightbdd.