Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parallel Test results clobber each other #70

Open
dzwarg opened this issue Aug 6, 2015 · 0 comments
Open

Parallel Test results clobber each other #70

dzwarg opened this issue Aug 6, 2015 · 0 comments

Comments

@dzwarg
Copy link

dzwarg commented Aug 6, 2015

Hello,

I am experimenting with the parallel testing feature, and I can't seem to get parallel tests to generate xunit output for each of my tests. I would like the parallel tests to either drop individual test result files, or to collect all the parallel test results into one file, but the current test results only contain the last running test.

I have the following test files:

  • test/page1_test.js
  • test/page2_test.js
  • test/page3_test.js
  • test/page4_test.js

My configuration looks like:

    grunt.config('casper', {
        options: {
            test: true,
            includes: 'test/common.js'
        },
        incoming: {
            options: {
                parallel: true,
                concurrency: 2
            },
            files: {
                'xunit/page-results.xml': ['test/*_test.js']
            }
        }
    });

During my run, it looks like the parallel runner runs the tests in the sequence:

  1. (batch 1)
    • test/page1_test.js
    • test/page2_test.js
  2. (batch 2)
    • test/page3_test.js
    • test/page4_test.js

Since my test/page3_test.js takes longer, the only results in the test results file (xunit/page-results.xml) are for the single test of test/page3_test.js.

Can the files setting support a template or function as the destination, so that parallel test results don't clobber each other?

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant