Closed sputnyq closed 5 years ago
Bug
The app, generated with dojo create app can not run the intern test with junit reporter specified
dojo create app
junit
Package Version: 5.0.0
Code
// run following commands dojo create app -n test-intern dojo build app --mode dist dojo build app --mode test dojo test -a -r junit
Expected behavior:
cli should write test result to an xml file.
Actual behavior:
<?xml version="1.0" encoding="UTF-8" ?><testsuites><testsuite name="node" failures="0" skipped="0" tests="8" time="0.011"><testsuite name="App" failures="0" skipped="0" tests="4" time="0.006"><testcase name="default renders correctly" time="0.002" status="0"/><testcase name="home outlet renderer" time="0.001" status="0"/><testcase name="about outlet renderer" time="0" status="0"/><testcase name="profile outlet renderer" time="0.001" status="0"/></testsuite><testsuite name="About" failures="0" skipped="0" tests="1" time="0"><testcase name="default renders correctly" time="0" status="0"/></testsuite><testsuite name="Home" failures="0" skipped="0" tests="1" time="0.001"><testcase name="default renders correctly" time="0.001" status="0"/></testsuite><testsuite name="Profile" failures="0" skipped="0" tests="1" time="0.003"><testcase name="default renders correctly" time="0" status="0"/></testsuite><testsuite name="Menu" failures="0" skipped="0" tests="1" time="0.001"><testcase name="default renders correctly" time="0" status="0"/></testsuite></testsuite></testsuites> Unhandled error: Error [ERR_STDOUT_CLOSE]: process.stdout cannot be closed at WriteStream.stdout._destroy (internal/process/stdio.js:18:18) at WriteStream.destroy (internal/streams/destroy.js:32:8) at WriteStream.Socket._final (net.js:301:17) at callFinal (_stream_writable.js:584:10) at _combinedTickCallback (internal/process/next_tick.js:139:11) at process._tickCallback (internal/process/next_tick.js:181:9) Error [ERR_STDOUT_CLOSE]: process.stdout cannot be closed at WriteStream.stdout._destroy <internal\process\stdio.js:18:18> at WriteStream.destroy <internal\streams\destroy.js:32:8> at WriteStream.Socket._final <net.js:301:17> at callFinal <_stream_writable.js:584:10> at _combinedTickCallback <internal\process\next_tick.js:139:11> at process._tickCallback <internal\process\next_tick.js:181:9>
Bug
The app, generated with
dojo create app
can not run the intern test withjunit
reporter specifiedPackage Version: 5.0.0
Code
Expected behavior:
cli should write test result to an xml file.
Actual behavior: