If TEST_JUNIT_XML_PATH is set, output JUnit XML format test results

This commit is contained in:
Ash Wilson
2017-07-28 17:56:00 -07:00
parent 81913776e8
commit a7105980a3

View File

@@ -7,6 +7,10 @@ module.exports = ({logFile, headless, testPaths, buildAtomEnvironment}) ->
window[key] = value for key, value of require '../vendor/jasmine'
require 'jasmine-tagged'
if process.env.TEST_JUNIT_XML_PATH
require 'jasmine-reporters'
jasmine.getEnv().addReporter new jasmine.JUnitXmlReporter(process.env.TEST_JUNIT_XML_PATH, true, true)
# Allow document.title to be assigned in specs without screwing up spec window title
documentTitle = null
Object.defineProperty document, 'title',