Code Monkey home page Code Monkey logo

Comments (6)

BennieCopeland avatar BennieCopeland commented on June 28, 2024

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.

amirrajan avatar amirrajan commented on June 28, 2024

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

BennieCopeland avatar BennieCopeland commented on June 28, 2024

@amirrajan That fails to build because the variables are now out of scope.

from nspec.

amirrajan avatar amirrajan commented on June 28, 2024

you have to make all your variables members of the test (class level).

from nspec.

BennieCopeland avatar BennieCopeland commented on June 28, 2024

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

amirrajan avatar amirrajan commented on June 28, 2024

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)

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.