Hot answers tagged

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 ...


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 ...


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 ...


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.


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