Integration of Jasmine Spec framework with Node.js
Questions tagged [jasmine-node]
327 questions
1
vote
2 answers
jasmine-reporters is not generating any file
i'm using jasmine-reporters to generate a report after protractor finish the tests,
this is my configuration file:
onPrepare: function(){
var jasmineReporters = require('jasmine-reporters');
var capsPromise =…

Liad Livnat
- 7,435
- 16
- 60
- 98
1
vote
1 answer
How to interact with confirm dialog in atom package spec?
Question
What options do I have to write specs for code that involves interacting with an atom editor confirmation dialog?
Background
I'm working on a package for atom, and have a command to delete a file that then pushes changes to the server. I'd…

Ralph Callaway
- 1,768
- 1
- 15
- 34
1
vote
1 answer
Nodejs Protractor + Jasmine + JUnitXmlReporter runs the test but without waiting for the browser
Im doing end to end testing of a Angular website using protractor, but wanted to export the results to a file that Jenkins can read (JUnitXmlReporter), so for this to work I need to do a "simple change" to my protractor config file on the…

chulian
- 3,767
- 4
- 21
- 23
1
vote
1 answer
Is there a default time-out for asynchronous tests running in protractor.js
I have a angular application. I have written some test cases for the login-page, checking normal login scenarios.
describe('Login screen tests', function () {
var ptor = protractor.getInstance();
beforeEach(function(){
…

Vikram
- 509
- 1
- 11
- 26
1
vote
1 answer
jasmine node testin child process callback
I have an async function that returns a callback with a status code and path if successful. I would like to use jasmine to test that I receive that status code and have the path be assigned to all future tests. I keep getting an undefined value…

TorusTorus
- 47
- 8
1
vote
1 answer
Disappearing value in Mongoose model custom function when testing with Jasmine-Node
I am trying to test my custom method on my Mongoose model, but the value I set in the test model disappears and makes the test fail. The test looks like this:
it('should get the friend id', function(){
var conversation = new Conversation({
…

Eva
- 4,397
- 5
- 43
- 65
1
vote
3 answers
Automated e2e testing- WebDriverJS, Jasmine
I'm following this tutorial
http://engineering.wingify.com/posts/e2e-testing-with-webdriverjs-jasmine/
First part calls for creating testfile.js
var webdriver = require('selenium-webdriver');
var driver = new webdriver.Builder().
…

Jack Shultz
- 2,031
- 2
- 30
- 53
1
vote
2 answers
jasmine_node failed while running mean-seed
Having trouble running a project generated by yeoman generator called mean-seed. I've been tinkering with it for a few days now and tried a couple things. Where I am having trouble is running the "jasmine_node" task:
Running "jasmine_node" task
>>…

Jack Shultz
- 2,031
- 2
- 30
- 53
1
vote
1 answer
How to overwrite constructor property from function
I am new in JavaScript programming and I have got no idea even how to ask Google, so i will describe in detail what I would like to achieve.
I am using node.js and xml2js module to create DataProvider class for jasmine, that parse simple XML…

Przemek Sech
- 47
- 1
- 1
- 7
1
vote
1 answer
Using jasmine.any, expected and actual SEEM to match
I'm trying to test that an express route is set in my node app using jasmine (along with jasmine-given and jasmine-stealth). I'm doing it in a loop but the gist of the comparison is (in coffeescript, incidentally):
route =…

tandrewnichols
- 3,456
- 1
- 28
- 33
1
vote
1 answer
Why isn’t this jasmine-node test failing?
I am using Express.js and Jasmine-node for the tests. This my server code:
var express = require('express');
var app = express();
app.get('/', function (request, response) {
response.send("Bonjour!");
});
module.exports = app;
and this is the…

mikewilliamson
- 24,303
- 17
- 59
- 90
1
vote
1 answer
how to run yadda BDD tests with jasmine
Is there any one who has an experience with these two frameworks ?
I saw in yadda's home page a jasmine section, but I've no clue how to run it.
Thanks

Igal
- 4,603
- 14
- 41
- 66
1
vote
1 answer
Check for node modules being loaded using jasmine-node
So I'm trying to teach myself Jasmine (for node) by working through a tutorial for a Mongoose project, TDD style, writing tests for what each step is supposed to accomplish, then following the actual tutorial, etc.
Of course, my first test is…

jbhelfrich
- 410
- 1
- 3
- 9
1
vote
1 answer
Why doesn't jasmine-node mongoose test wait, as expected?
I am writing a simple app that saves and looks up locations. I'm using mongoose and jasmine-node.
User CRUD test work as expected. However, I created the users individually to test different custom validations. I also start the tests by clearing…

Matthew Bakaitis
- 11,600
- 7
- 43
- 53
1
vote
1 answer
Jasmine failed to spy function called within the async.waterfall block
I have a node.js app, using async utilities, to break nested callbacks.
And I'm trying to spy functions which enclosed by async.waterfall in my jasmine specs, but always get failures.
The following code can reproduce the error:
async = require…

xinthink
- 1,460
- 1
- 18
- 22