Comments (12)
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.
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.
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.
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.
@felixSchl Did you try anything out with the Free monad?
from purescript-spec.
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.
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.
Alternatively we could put it behind a function: Unit -> Aff _ _
from purescript-spec.
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.
At least to have some starting point.
from purescript-spec.
yeah hangouts would be best, I'm not big on skype. It's just this email address.
from purescript-spec.
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)
- Changing timeouts is too difficult HOT 1
- Pursuit docs are not up to date HOT 2
- aroundAll hook HOT 1
- Add flag to run tests in randomised order
- Spec Editor integration HOT 3
- xit HOT 2
- Report output misses last `pending` in each nested `describe`? HOT 1
- itOnly still evalutates? HOT 3
- Add warning to `*Only` HOT 1
- Better reporting for diffs HOT 1
- Use an actual bracket to handle test setup/cleanup HOT 4
- `pulp test` fails on CI HOT 1
- Version 7.3.0 is not in the package set HOT 1
- beforeAll hook and Spec Identity monad HOT 10
- Fix warning in TeamCity file HOT 2
- new Tree type is a breaking api change HOT 3
- Changes in nesting of `describe` causes unexpected changes in reporting HOT 2
- Teamcity reporter overwrites nodes when there are more then one child of a describe HOT 5
- Warning when specifying the type of a Spec HOT 7
- `consoleReporter` not reporting which test that failed when running tests in `parallel` 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 purescript-spec.