Comments (4)
Hey Matt,
How are you intending on running the task?
I have started implementing a parallel task option with timing but want to make sure I cover your use case before pushing it to the 1.1 branch.
I.E.
casper : {
options : {
parallel : true,
concurrency : 10
},
files : /* Hash / Array ? */
}
from grunt-casper.
Yeah something like that. Max concurrency is a good idea. Does it wait until one of the first 10 tests is done, then start test #11, etc.?
Here's what ours looks like (right now we have a bunch of component tests and one big golden path test that looks at navigation between components):
casper : {
options : {
test : true,
includes: 'app/shared/test/setup.js',
parallel : true,
},
{
files : "app/entertainment/*/.test.js
}
One of the things we also wanted to look at is spinning up a separate node instance for each component test. That can probably happen down the line though when we have hundreds of them.
-- Matt Savino
(w) 310-964-4127
(c) 310-344-0889
IM: [email protected]
From: Chris Miller <[email protected]mailto:[email protected]>
Reply-To: iamchrismiller/grunt-casper <[email protected]mailto:[email protected]>
Date: Tuesday, October 22, 2013 12:49 AM
To: iamchrismiller/grunt-casper <[email protected]mailto:[email protected]>
Cc: DIRECTV <[email protected]mailto:[email protected]>
Subject: Re: [grunt-casper] Support for running tests in parallel (#14)
Hey Matt,
How are you intending on running the task?
I have started implementing a parallel task option with timing but want to make sure I cover your use case before pushing it to the 1.1 branch.
I.E.
casper : {
options : {
parallel : true,
concurrency : 10
},
files : /* Hash / Array ? */
}
β
Reply to this email directly or view it on GitHubhttps://github.com//issues/14#issuecomment-26783265.
from grunt-casper.
Straight From Async Docs :
The same as each only no more than "limit" iterators will be simultaneously running at any time.
Note that the items are not processed in batches, so there is no guarantee that the first "limit" iterator functions will complete before any others are started.
I am close to having this finished.. I will complete it tonight after work.
from grunt-casper.
I pushed the fix to 1.1.. I was feeling ambitious. Let me know how it works for you.
Concurrency is maxed at 10 because of possible memory leaks in Node.
from grunt-casper.
Related Issues (20)
- Running all tests even on failure HOT 1
- "Done, without errors." even if test fails (SlimerJS 0.9.2, casper 1.1.0-beta3, grunt-casper 0.4.1) example inside HOT 1
- Canβt install PhantomJS on Travis CI HOT 1
- Issue with phantom and casper HOT 2
- engine: "slimerjs" Aborted due to warnings - 0.4.1 HOT 1
- Tests run in reverse (backwards) order? HOT 3
- slimerjs - Aborted due to warnings - 0.4.2 HOT 1
- Options in test mode HOT 1
- missed test files randomly HOT 2
- ignore-ssl-errors not working
- Can not override Phantom JS executable
- Dest with parallel to false pass Array
- support --no-colors CLI flag in test mode
- Parallel Test results clobber each other
- Include of clientside scripts does not work HOT 1
- Cannot use `files` in grunt v0.4.5
- npm install fails
- Update dependencies. HOT 4
- npm install fails on Travis CI HOT 2
- npm install fails on slimmerjs 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 grunt-casper.