How to get around issues running a single test with RequireJS and QUnit 1.9?

How to get around issues running a single test with RequireJS and QUnit 1.9?

I recently upgraded from QUnit 1.2pre to 1.9, and have found that rerunning individual tests no longer works reliably for me - often an entirely different test will be run.

My tests are in RequireJS modules that get bootstrapped as follows:

<body>
  <script src="vendor/qunit.js"></script>
  <script src="../../assets/js/libs/require.js"></script>

  <script>
    require({
      deps: ['util/test-helper.js',
        ...
      ],
      paths:
      {
        t: "../test/qunit/t"
      }
    }, [

      "t/test-backbone-handlebars",
      "t/test-backbone-state-machine",
      ... 
    ]);
  </script>
</body>

I've noticed that in QUnit 1.9, tests are re-run by number, whereas in 1.2pre, they were rerun by name.

I'm guessing this is the cause of my problem, because the ordering of my tests can change from one run to another - even if I'm just rerunning a single test.

Has anybody else had this issue and/or got any ideas for how to get around it?

Thanks,

Ben