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

IoC testing framework does not accept IoC configuration for test fixtures

    XMLWordPrintable

Details

    Description

      The IoC testing framework's main driver, the function fluid.test.runTests, only accepts a list of bare gradeNames as its specification of the test environments to be run. For example, this driver runs three test environments -

      fluid.test.runTests([
      "fluid.tests.myTestTree",
      "fluid.tests.asyncTestTree",
      "fluid.tests.initTree"
      ]);

      This inhibits reuse of testing environments, where these only differ in the content of configuration - KASPAR's current integration testing for GPII is required to illegally fabricate fresh grades in a loop in order to issue different integration testing configurations. We should support a syntax that essentially takes the form of free subcomponents - for example,

      fluid.test.runTests([ {
      type: "fluid.myTestTree",
      options:

      { myValue: 3 }

      });

      Attachments

        Activity

          People

            antranig Antranig Basman
            antranig Antranig Basman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: