All Questions
56
questions with no upvoted or accepted answers
5
votes
1
answer
1k
views
Karma/Jasmine tests fail with error: 'Uncaught Error: Module name "simple_test.js" has not been loaded yet for context: _. Use require([])'
I am using Karma and Jasmine to run tests on my project built with React. When I try to run my Karma tests I get this error in the console:
Running "karma:test" (karma) task
WARN `start` method is ...
5
votes
2
answers
1k
views
How can I get istanbul working with node, mocha, jasmine and require js
I have an existing test suite that runs fine in node.js using mocha, require and jasmine, with the tests being run via a psake powershell script. I am attempting to add test coverage, so to run the ...
4
votes
0
answers
2k
views
How to set up JASMINE using MAVEN-PLUGIN?
I have a folder structure like
-root
-pom.xml
-service
-web
-pom.xml
-src
-main
-test
-java
-javascript
-lib
...
4
votes
0
answers
967
views
Using Resharper and Karma to run Jasmine tests on Angular modules in Require modules
That's a mouthful.
I feel like I'm asking for the moon, but I would like to be able to use Resharper and Karma to run my Jasmine tests for my code that defines Require modules that contain Angular ...
4
votes
0
answers
981
views
Error loading JavaScript with jasmine-maven-plugin within Jenkins
I am somewhat frequently receiving the following error loading javascript internal to our application while running Jasmine tests using the jasmine-maven-plugin. This seems to only happen when run in ...
3
votes
1
answer
318
views
Coverage.json not generated with Jasmine RequireJS and Istanbul in grunt
I have trying to generate coverage report based from grunt using grunt-template-jasmine-istanbul. The Specs are executed correctly but no coverage report is generated.
Below is my code in the config ...
3
votes
2
answers
643
views
PhantomJS not playing nice with RequireJS+Jasmine
I have some tests running with RequireJS and Jasmine. I have a Jasmine test harness file that looks like this:
<html>
<head>
<meta charset="utf-8" />
<link rel="...
3
votes
1
answer
496
views
How to use testr with karma-jasmine adapter?
Everything works (Karama, Jasmine, Underscore, Backbone, testr) as evidenced by the _UnitTestUnitTest passing. But simple testr statements always fail.
The basic _UnitTestUnitTest works!
it('works ...
3
votes
1
answer
781
views
Jasmine, require and play framework
Im really stuck now with the play framework and the jasmine plugin made by the guardian newspaper, https://github.com/guardian/sbt-jasmine-plugin.
I have gotten jasmine to run with play test, but i ...
3
votes
0
answers
687
views
Grunt Jasmine task using full path so it does not automatically append '.js' onto the end of my requirejs files
I am trying to set up grunt to run a jasmine task.
Here is my jasmine json for the Gruntfile.js
jasmine: {
src: '../app/src/**/*.js',
options: {
specs: '../app/test/spec/**/*.js',
...
2
votes
0
answers
2k
views
Karma: Missing tests when running with phantomJS
I have a problem with my karma configuration when running my tests in a phantomJS environment. The test result output is like this:
Running "karma:build" (karma) task INFO [karma]: Karma v0.12.16 ...
2
votes
1
answer
263
views
Backbone integration tests: Zombie.js and RequireJS, how to?
I'm trying to test my Backbone.js web application.
Since this application is basically only consuming web services, there is not really business logic inside, and the app is simply addressing calls to ...
2
votes
1
answer
1k
views
How can we use jasmine, jasmine.ConsoleReporter, require.js and backbone together
I'm struggling to get jasmine along with it's ConsoleReporter working within a backbone application using require.js. I have seen Check Backbone/requireJs project with Jasmine but that hardcodes the ...
2
votes
0
answers
1k
views
testing require modules with jasmine in nodejs
I ma trying to load require modules in node to test with jasmine.
Hers my spec runner
var coffee,
isVerbose,
jasmine,
key,
showColors,
sys,
i,
len,
jasmine = ...
1
vote
0
answers
28
views
RequireJS data-main does not load from html files at different paths
Using RequireJS successfully for a single page application for quite some time. Finally adding JS unit tests to exercise model classes. I have a single config for src modules and another for test ...