david0178418/BackboneJS-AMD-Boilerplate — Issue #1: How to add more specs?
Author: webrails
Created: 2012-01-20 14:14:21+00:00
State: open

Hello David,

I tried to add more specs to the spec-runner.js file in the Array at this position:

//list of specs to run

My spec runner looks like this:

(function() {
"use strict";
var specsPath = '../../tests/js/specs/';
define([
specsPath + 'main-view-spec',
specsPath + 'binary.switch.device.view.spec'
],
function(specStub) {
return {
...

I can see in the console that the new file "binary.switch.device.view.spec" is actually loaded, but none of the tests is being executed. If I put the new spec file to the first position of the array, the contained specs are successfully executed. So how is it possible to test more than one single spec file?

Thanks Marc