Git Product home page Git Product logo

Comments (4)

iamchrismiller avatar iamchrismiller commented on August 9, 2024

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.

YukonSaint avatar YukonSaint commented on August 9, 2024

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.

iamchrismiller avatar iamchrismiller commented on August 9, 2024

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.

iamchrismiller avatar iamchrismiller commented on August 9, 2024

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)

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.