searls/jasmine-maven-plugin — Issue #57: Tests seem to run before sourceIncludes are loaded
Author: stvn
Created: 2012-01-18 17:38:26+00:00
State: open

I'm trying to do the following:

com.github.searls
jasmine-maven-plugin
1.0.2-beta-5

test

controllers/search.js

${project.basedir}/src/main/webapp/assets/js/

Where I have the following spec:

describe('Controllers Spec', function () {
describe('Search Controller', function () {
it('should get location display', function () {
var controller = new App.Controlllers.SearchController();
expect(controller).toBeDefined();
});
});
});

However, it seems that the test is executing before search.js can be loaded. I tried moving this into preloadSources and had some success there, however, as soon as I had more than 3 dependencies in preloadSources, it seemed to have the same problem that I'm seeing here where some code is evaluated/executed before dependencies are loaded.