You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Report nested suites/tests when running unit tests in browsers and should look like:
Current behavior
Does not report any suites/tests within 'root' and report looks like:
Possible solution
I believe the cause of this is at this line, I assume the suite has been serialised/deserialised from the browser as JSON. Therefore the suite is a plain javascript object and not an instance of Suite, I have worked around this by patching the line to check for the presence of a tests property on the test object, see below
if (test.tests) {
Steps to reproduce (for bugs)
Using the intern tutorial I added the JUnit reporter and added the test below:
Expected behavior
Report nested suites/tests when running unit tests in browsers and should look like:
Current behavior
Does not report any suites/tests within 'root' and report looks like:
Possible solution
I believe the cause of this is at this line, I assume the suite has been serialised/deserialised from the browser as JSON. Therefore the suite is a plain javascript object and not an instance of
Suite
, I have worked around this by patching the line to check for the presence of atests
property on the test object, see belowif (test.tests) {
Steps to reproduce (for bugs)
Using the intern tutorial I added the JUnit reporter and added the test below:
Environment
Intern version: 4.1.5
Node version: 6.11.4
NPM version: 5.2.0
Browser version: chrome 62
Additional information
Works as expected when using node as the environment
The text was updated successfully, but these errors were encountered: