All Questions
24
questions
1
vote
0
answers
404
views
Executing 0 of 0 Error on running unit test cases using Karma and Jasmine
I want to run the test cases using karma and jasmine. I have done the following, but it is giving error like:
Error:
Chrome 59.0.3071 (Linux 0.0.0): Executed 0 of 0 ERROR (0.12 secs / 0 secs)
karma....
0
votes
1
answer
1k
views
Uncaught Error: Mismatched anonymous define() module: function in karma and jasmine unit testing with requirejs [duplicate]
I am trying to run unit test cases for my controllers, I have tried the following but getting the below error, please let me know to run this test successfully. Thanks in advance.
spec.js:
describe('...
0
votes
1
answer
101
views
Angular-Jasmine, loading json
I am trying to load json from local folder and then feed it into function to test it. Here is what I am trying to do:
it('should be able to use treatExpResultJSON() function to treat incoming JSON', ...
8
votes
2
answers
6k
views
"Error: Mismatched anonymous define()" with Karma + RequireJS + Jasmine
I am stuck now for a while trying to get unit testing set up and runnning.
I have an AngularJS front-end loaded with RequireJS and r.js optimized for production, so it's all nicely in one single file....
0
votes
1
answer
848
views
Writing Unit Testing With Jasmine , Require JS in Karma for Angular JS?
I have Done a Library Management App with Angular JS and Mongo Lab will Act as a DB Part, I am facing issuse with Require JS Dependency While Crating Unit test Case
Error: [$injector:modulerr] Failed ...
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....
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 ...
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 ...
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, ...
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
...
1
vote
2
answers
1k
views
AngularJS, RequireJS and Karma issue
Apologies in advance for the long post. I have been stuck with this for the last couple of days. Basically, I have an AngularJS project with RequireJS setup which works fine. I am trying to write unit ...
3
votes
4
answers
281
views
Getting Jasmine to Work with Angular JS
I am trying to get Jasmine to work with my Angular JS Project But I always keep getting the following error. I am trying to get it to run a very very simple test. Also I have setup the angular js ...
0
votes
1
answer
300
views
Testing uiRouter with requirejs
I have been stuck on this issue for a bit and have not had success with any other questions on here regarding testing uiRouter with requirejs. I have a fairly basic controller setup that uses the $...
0
votes
3
answers
952
views
angular - requireJs - karma
I've created a simple test application that write hello.
The application is:
boot.js
require.config({
appDir: '',
baseUrl: '',
paths: {
angular: 'app/bower_components/angular/angular',
...
0
votes
2
answers
2k
views
issue with setting up test framwork with karma, jasmine 2.0, requirejs and angular
i am trying to setup testing framework with karma, jasmine 2.0, requirejs and angular. but when i run 'karma start', i got 'Uncaught Error: Module name "shelljs" has not been loaded yet for context: _....