Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [jasmine]

Jasmine is a behavior-driven development (BDD) framework for testing JavaScript code. Jasmine has no external dependencies and does not require a DOM.

8 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
0 answers
1k views

Karma/ Jasmine testing framework - tests don't appear to be executed

I am looking to implement the Karma/ Jasmine test suite/ framework for use with my AngularJS app. Having never used a testing framework previously, I have followed the tutorial - to give it a go, ...
Noble-Surfer's user avatar
3 votes
0 answers
2k views

How to clear karma warn web-server 404 error for Service method call?

I am new to TDD. I have configured the karma and gulp for my sources to generate the code coverage. My karma configuration file is given below: browsers: ['Chrome', 'IE', 'Firefox', '...
Thiru Arasu's user avatar
3 votes
0 answers
607 views

Unable to add/attach screenshot and test steps in Report

I am working on protractor and using "protractor-angular-screenshot-reporter" to generate the report. But I am unable to add screenshot and test steps in this report. Can anyone please help ...
vedant's user avatar
  • 31
2 votes
0 answers
461 views

How to check children method has been called in jasmine test cases?

We use spyOn(this,"_new") to track a function call in jasmine. I need to check the children method call in jasmine. My code sample is given below, Sample code: function perform(option) { this....
Thiru Arasu's user avatar
2 votes
0 answers
1k views

How to expand upon the error from a Jasmine expect failure?

I'm using Jasmine, FrisbyJS, and Jest to create API tests for my team's product. I want to be able to handle when an expect (which I'm pretty sure Frisby is just using the underlying Jasmine expect) ...
S.Huston's user avatar
  • 167
1 vote
1 answer
107 views

Screenshot not found error in protractor

I am getting broken image for screenshot. Unable to take screenshot in protractor framework. Please anyone help on this. My code: testconfig.js file var fs = require('fs-extra'); var today = new Date()...
Lakshmi's user avatar
  • 11
1 vote
0 answers
109 views

Jasmine, how to test a return?

I'm writing some unit tests for our Angular application. In a few instances, we have some code that is like the following. public submit(): void { if (!this.selectedValue) { ...
DrZoo's user avatar
  • 131
0 votes
1 answer
1k views

Why element locators are not suggested in visual studio code for protractor?

I don't get suggestions for "element(by." element locators in visual studio code. Im using protractor. I have changed the settings file also. Settings.js { "editor.quickSuggestions": { "...
Syrus's user avatar
  • 1,197