Git Product home page Git Product logo

Comments (12)

owickstrom avatar owickstrom commented on May 24, 2024

Not right now, but that would be nice. How about a flag or environment variable on the command line, e.g. SPECS='Foo.*' pulp test?

Thanks!

from purescript-spec.

felixSchl avatar felixSchl commented on May 24, 2024

That would be cool as well, but I can see more use if I could do it from code. The reason being that if I have pulp -w test running, I change this setting mid-way through.

from purescript-spec.

felixSchl avatar felixSchl commented on May 24, 2024

I just had a look through the code, I think adding this would be hard because each it block immediately executes if I am not mistaken. I think this whole project would be a perfect match for the Free monad? What do you think? I would be keen to do some work for the learning experience.

from purescript-spec.

owickstrom avatar owickstrom commented on May 24, 2024

Yes, I agree, getting that lazy execution of tests is something that I've wanted to do. The current design makes it quirky to implement the Mocha reporter and support async, I think that might be simpler with a Free monad design as well.

If you'd like to have a stab at it that would be great!

from purescript-spec.

owickstrom avatar owickstrom commented on May 24, 2024

@felixSchl Did you try anything out with the Free monad?

from purescript-spec.

felixSchl avatar felixSchl commented on May 24, 2024

Nothing worth mentioning. I still think it's something very desirable to have, I just didn't have the time to invest into it. Not sure if the Free monad would work, how would you capture the arbitrary user code that runs as part of it in a data type?

from purescript-spec.

owickstrom avatar owickstrom commented on May 24, 2024

I guess the ADT would need to keep that Aff value and run it on interpretation. Would be cool to investigate this track. I have so little time right now, though. 😞

from purescript-spec.

felixSchl avatar felixSchl commented on May 24, 2024

Alternatively we could put it behind a function: Unit -> Aff _ _

from purescript-spec.

owickstrom avatar owickstrom commented on May 24, 2024

Sure, that may be the best way.

If we could sync a time then maybe we could hack on this over Skype, hangouts or whatever?

from purescript-spec.

owickstrom avatar owickstrom commented on May 24, 2024

At least to have some starting point.

from purescript-spec.

felixSchl avatar felixSchl commented on May 24, 2024

yeah hangouts would be best, I'm not big on skype. It's just this email address.

from purescript-spec.

owickstrom avatar owickstrom commented on May 24, 2024

I'm closing this as we're not currently progressing. If we want to try the Free monad approach later on I think that's a bigger redesign. Thanks!

from purescript-spec.

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.