FLOE-467: The Chart Authoring Tool's unit tests are currently failing

Metadata

Source
FLOE-467
Type
Bug
Priority
Major
Status
Resolved
Resolution
Fixed
Assignee
Alan Harnum
Reporter
Colin Clark
Created
2016-06-23T18:17:16.761-0400
Updated
2016-09-13T13:01:54.330-0400
Versions
N/A
Fixed Versions
N/A
Component
  1. Chart Authoring Tool

Description

There seem to be two different types of failures in the Chart Authoring Tool:

  1. A failure in Flocking when destroying the Environment prior to destroying any Synths that have a reference to it
  2. Tests that fail at least semi-regularly when run using QUnit composite from the all-tests.html suite. This seems to be due to asynchronous tests starting at the wrong time.

For #1, we need to do the following:

  • Upstream in Flocking, ensure that hard errors don't occur when trying to destroy a synth that no longer has a valid Environment reference. This has been fixed thanks to Alan Harnum.
  • Provide a means in the Chart Authoring Tool itself for creating a Flocking environment as early as possible (i.e. immediately after Flocking's own scripts have loaded)
  • Ensure that the CA Tool's own unit tests define their own custom environment that can be created and torn down on each test run.

For #2, the following tests seem to be failing:

  • legend-Tests.html
  • sonifier-Tests.html
  • chartAuthoring-Tests.html

Alan Harnum mentioned in the IRC channel that these tests all employ the fluid.resourceLoader component to asynchronously load templates.