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

Write a XML File for jUnit #20

Open
wedneyyuri opened this issue Dec 2, 2015 · 2 comments
Open

Write a XML File for jUnit #20

wedneyyuri opened this issue Dec 2, 2015 · 2 comments

Comments

@wedneyyuri
Copy link

I'm using a CI System and would be nice to see what tests are run. Maybe integration options with
qunit-reporter-junit?

Similar: jonkemp/qunit-phantomjs-runner#8

@BenjaminVanRyseghem
Copy link

👍

@johnjiang
Copy link

johnjiang commented Dec 3, 2016

I'm having issues with writing a PR to use the xml runner. Passing the parameters through to call the right runner is trivial but the runner is having issues injecting the code.

if (page.injectJs('./node_modules/qunit-reporter-junit/qunit-reporter-junit.js') === false) {
     console.error('Could not inject `qunit-reporter-junit.js`.');
     exit(1);
}

I'm assuming it's a path issue since qunit-reporter-junit isn't in the scope of the node package that's requiring node-qunit-phantomjs.

As an alternative, adding qunit-reporter-junit.js to the test runner html and executing:

./node_modules/.bin/node-qunit-phantomjs qunit.html --verbose --timeout=10 | tee /dev/stderr | grep '^<' > qunit-junit-report.xml

Works quite well.

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

3 participants