Comments (6)
I can try and find the time to create a PR for this over the next few weeks, but I was REALLY hoping the project had moved on from project.json
. I don't look forward to reinstalling 2015.
from nspec.
@BennieCopeland there shouldn't be any "bare" code within the blocks. You need to put
int someValue = int.MaxValue;
MyClass myClass = null;
bool expectException = false;
Action action = null;
into the before
.
from nspec.
@amirrajan That fails to build because the variables are now out of scope.
from nspec.
you have to make all your variables members of the test (class level).
from nspec.
That would work, but it could lead to a lot of variables at the class
scope. I've never had a problem with scoping inside the context
s. But this is getting away from what this issue is about, which is a feature request for changing the exception handling behavior. Right now, context failures color the tests red (which is great), but I would like it to also hand the tests the caught exception for inspection.
from nspec.
But this is getting away from what the issue is about.
Yep sorry about that. Here is some food for thought: #169
And this one: #59
from nspec.
Related Issues (20)
- Support .NetStandard 1.5 or lower HOT 1
- Details of inner exceptions are not displayed in console output HOT 2
- Feature: An opposite version of `expect` HOT 5
- Execution Order before_all does not get called HOT 15
- TeamCity support HOT 2
- Possibility to specify test execution order HOT 4
- Persisting underscore in Assertions HOT 2
- NullReferenceException with nested parameterized Tests HOT 7
- Documentation of how to use tags HOT 4
- Idea (NUnit, XUnit migration) HOT 2
- Walk through on VS2017 integrations HOT 6
- Getting Started guide on nspec.org incorrect HOT 4
- CleanMessage sometimes removes useful information HOT 4
- Continuous Runner similar to karma HOT 10
- Can't find instructions on setting up Specwatchr - URL http://nspec.org/continuoustesting 404's HOT 3
- it / specify on class level do not work HOT 8
- Tagging feedback HOT 2
- Support .net core 3.x +? HOT 1
- Is NSpec dead? HOT 1
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 nspec.