Uploaded image for project: 'Fluid Infusion'
  1. Fluid Infusion
  2. FLUID-6397

IoC Testing Framework always begins to construct first test environment grade immediately

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: IoC Testing Framework
    • Labels:
      None

      Description

      There is a design flaw in the current IoC testing framework in that construction of the first test environment grade supplied to fluid.test.runTests will start IMMEDIATELY, since otherwise the framework cannot evaluate what test fixtures there are in order to send them to jqUnit.asyncTest. This means that this startup will be interleaved with any other asynchronous tests which are already in progress which may lead to undesirable results.

      This problem could not be resolved before we have implemented the FLUID-4982 framework which is capable of introducing asynchronous delays into component startup. Once we can update to this framework, we can insert a "resource" into the resources block of the testEnvironment that delays further instantiation of the grade until QUnit's test queue is dry.

      In the meantime, the best practice is to place all IoC testing framework tests FIRST in any test run which consists of mixed IoC testing framework fixtures and ordinary jqUnit.asyncTest fixtures.

        Attachments

          Activity

            People

            Assignee:
            antranig Antranig Basman
            Reporter:
            antranig Antranig Basman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: