Hot answers tagged

2

By default, as per the Mocha documentation on reporters, there is no Excel reporter. There are some CLI reporters (Spec, Dot, etc) and there are HTML and JSON reporters. A quick Google search shows there is an NPM package called Mocha-Insights-Reporter that can generate Excel files. Since Mocha is open-source and has documentation, your other option is to ...


2

1) If you're testing at the level of an http request your app's use of angular is almost certainly a non-factor. Angular would matter more were you testing at the browser level ("as a user" basically). When talking about http request level testing you're thinking more "as a system" and how it interacts with your api. 2) What're you're looking for is an ...


1

I tried to pin down the source of "undefined" on both your example and my own tests. After playing around with it for a while, "undefined" seems to be coming from Cypress, not Mocha reporter since I've tried running the tests without it and "undefined" is still in console. So, my config was just sth. like: { "projectId": "<my_project_id>", "...


1

Try to capture the output from cmd.run(git pull');, e.g. out = cmd.run('git pull'); then assert out.match('Already up-to-date.') I don't know the exact syntax so adjust as needed.


1

Since you cannot leverage the testing tools of modern framework, such as React or Ember, I would suggest the following: Focus on application level checks: Using Selenium, most widespread. Example here: driver.get("http://www.google.com"); WebElement element = driver.findElement(By.name("q")); element.sendKeys("TestingBot"); element.submit(); Or using ...


1

I have listened to the event "run_complete" and I have done my actions.


1

var Page = require ('../lib/home_page.js'); var webdriver = require('selenium-webdriver'); { describe , before , after , it } require('selenium-webdriver/testing'); var page; describe('library app scenarious', function() { beforeEach(function(){ page = new Page(); page.CheckOut(); }); afterEach(function(){ ...


1

I'm relatively new to the MEAN stack, so I had to answer this question for myself in the last 1-2 months. I chose Jasmine/Frisby. Here is why: As you say, there are many tutorials and examples for Mocha/Chai/chai-http, so while initially experimenting with Node/Express, Mocha/Chai/chai-http was my initial choice. And I liked the setup. I then started ...


Only top voted, non community-wiki answers of a minimum length are eligible