Skip to main content

All Questions

Tagged with
1 vote
1 answer
2k views

Backbone Views / Jasmine / Requirejs - Cannot read property replace of undefined

Using Jasmine, I have already written tests for my models and controllers and all have passed. However, I am running into a lot of problems if I test my views. IF I remove views/hf_appView from ...
snewc's user avatar
  • 45
0 votes
1 answer
482 views

angular js dynamically loading modules + requirejs

controller.js define([ 'angular', 'app', 'underscore', 'jquery' ], function (angular, app, _, $) { 'use strict'; var module = angular.module('kibana....
Biga Gaber's user avatar
0 votes
0 answers
72 views

How can I write a unit test for Loading AngularJS Components With RequireJS After Application Bootstrap?

I write a unit testing for angular js applications. the bootstrap for this app loading dynamically. when I write the unit test for this always error happen like didn't find the module or unknown ...
Ahmed Gaber - Biga's user avatar
1 vote
0 answers
80 views

Spy doesn't get called using async jasmine and requirejs

I have a setup of AngularJS application that uses RequireJS to download and register services on-demand. I also use Jasmine for testing. I am trying to test if a function is called in the callback of ...
user2080579's user avatar
0 votes
1 answer
1k views

RequireJS, Jasmine and Grunt Error: scripterror: Illegal path or script error

I have an application which uses requireJS, and I would like to use grunt-contrib-jasmie to test it. In order to get jasmine to work with require I am using cloudchen's grunt-template-jasmine-...
Dean Nasseri's user avatar
1 vote
0 answers
497 views

Don't see any Blanket coverage report on my Jasmine unit tests loaded using RequireJS even after configuring it without errors

Before my question I'll give some context on the libraries I'm using Unit Test Framework : Jasmine 1.3.1 AMD Loader : RequireJS Code Coverage Tool : Blanket My unit tests are all setup. I've been ...
Bhargav Shah's user avatar
0 votes
1 answer
1k views

Karma+Jasmine+RequireJS not running specs

I've been trying to get Karma working practically the entire day. For some reason, I cannot get Karma to actually run the tests. Instead, it just seems to idle indefinitely, giving no indication of ...
Chris's user avatar
  • 1,118
3 votes
2 answers
607 views

Mocking an anonymous module call in Jasmine using requireJs

Current unit testing setup: Jasmine 2.1 RequireJs 2.1.15 Chutzpah 3.2.6 In our code base we have a number of modules which are loaded in through requireJs to abstract out functionality. For example ...
WestDiscGolf's user avatar
  • 4,108
1 vote
0 answers
58 views

Jasmine Grunt, Backbone, Require, Routes etc

i have a question. I have a full app, a lot of view(backbone), models, everything using require, routes etc. When my app is on production i have a single file main.js, like this: <script data-main=...
Guilherme Cruz's user avatar
20 votes
1 answer
12k views

KarmaJS, Jasmine, RequireJS, etc: How to Use Require for Testing Modules

Running Karma + Jasmine Tests with RequireJS -- Getting off the ground Help! . . . _ _ _ . . . SOS! Currently, I have an exercise project up for getting comfortable with KarmaJS -- and Unit Testing, ...
Cody's user avatar
  • 9,906
0 votes
0 answers
225 views

JavaScript unit tests with Jasmine and RequireJS

In my visual studio I have two projects one of them provide functionality for SharePoint page and another one for testing purposes. In the first project I have few view modules that use RequireJS as ...
nelly2k's user avatar
  • 781
0 votes
1 answer
998 views

angularjs with requirejs and karma testing - inject undefined

I have a project that is using angularjs with requirejs and testing with karma. I am having trying with testing a service in the project. These are my files that I have configured with angularjs, ...
professor_robot's user avatar
1 vote
1 answer
1k views

AngularJS, RequireJS, Karma - Test File not loading

I'm currently attempting to run tests using Karma, however I can't seem to load the Test file... this is my file structure: app controllers .. directives .. .. test ...
Gonçalo Vieira's user avatar
1 vote
1 answer
420 views

Why is grunt-contrib-jasmine hanging?

I'm asking this for posterity because it took me some time to figure this out. I have an application that uses require.js and tests based on jasmine, automated with grunt. I have grouped my modules ...
leftclickben's user avatar
  • 4,614
3 votes
1 answer
2k views

JavaScript unit tests in a separate project when using Chutzpah testrunner and requirejs in Visual Studio

I'd like my tests to be in a separated project from the code under test as described in Jasmine in a separate test project. However, the approach with including reference paths in the test files doesn'...
Christian's user avatar
  • 7,730

15 30 50 per page
1 2 3
4
5
10