Closed shsnyder closed 10 years ago
It is functioning as expected. It runs multiple test files in parallel where you can then set the concurrency. I have a test for it in the Gruntfile grunt casper:parallel
which has 5 test files and a concurrency of 5 and it passes as expected.
Chris, thanks for the update to get casper test execution working. However, while the casper test works correctly, it only executes once, regardless of the number I use for the concurrency.
I was looking at the grunt-casper source and the call that is supposed to execute the calls in parallel "grunt.util.async.forEachLimit" is expecting an array of files as the first parameter. When I instrumented the async.forEachLimit call in async.js I see that once the initial call is made, the number of completed calls is compared to the file array length.
Since that is 1, the function exits after one call. Perhaps there is another async call that is more appropriate. Let me know if I can help with debugging.