mocha silently skips bad test files

Bug #1183887 reported by Richard Harding
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-gui
Triaged
High
Unassigned

Bug Description

test_startup.js is generated and has been missing on the charm/CI tests because the proper Make command wasn't run. Mocha, will silently ignore files it can't process/parse. Add a syntax error to the top of one of the test files and it'll run the rest of the tests.

In talking with Gary/Jeff the thought is that we should make two changes.

1. The charm/apache setup should not serve the index.html when tests are enabled for the /test directory. It should 404 if a file requested in /test is not found.

2. Change the list of included <script>test_xxx</script> to a JS array of filenames that need to be loaded. Then use Y.Get.js to load each file and check for error. If a file 404'd or failed to load, make sure we know about it.

Tags: tests
Gary Poster (gary)
Changed in juju-gui:
importance: Medium → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.