All Questions
10 questions
0
votes
3
answers
1k
views
Improve CI process by testing against docker image and fail docker build if test fails
Our CI process goes as this cycle (I think it is quite normal), unit test => build docker image => run function test against the image => if test fails remove the failed docker image, figure ...
2
votes
1
answer
524
views
Where should I do integration tests in a multi package project
Background:
I am working on a node project which consists of a core package and several addon packages. For the end product to work, the core package and atleast one of the addon packages should be ...
0
votes
2
answers
121
views
What is the principle that the npm module drydock can provide data at the port when the local web server is already using that port?
When a local web server is already running at port 3000, I wonder why the npm module drydock is able to provide data also through port 3000? I thought once a port is used, then other process cannot ...
1
vote
1
answer
265
views
Howto structure my app.js code to make it easier testable
I have a couple of Philip Hue lights in the hallway. These show the build status on their lights with a small Node.JS application. Its working like a charm.
Currently I am in the process of testing ...
3
votes
2
answers
2k
views
Update semver minor version on test updates?
I always try to adhere the semver spec when I commit changes. This time though I was wondering what to do when I update my tests: I'm working on an API client that includes a simplified API server ...
1
vote
1
answer
1k
views
Create fake HTTP server to simulate an API for testing
I'm looking to mock responses from an external API service that returns JSON during live events.
The first response would contain (fake) events that have happened up to time X, the second response ...
10
votes
1
answer
932
views
Testing gap between unit and integration: Integration in the Small, Component, Unit Integration Tests
Over the past few weeks I've been mulling and researching how to fill a gap in our testing methodology. In simplified terms unit tests are too small and traditional integration tests are too big.
A ...
2
votes
1
answer
1k
views
How to unit test models in MVC / MVR app?
I'm building a node.js web app and am trying to do so for the first time in a test driven fashion. I'm using nodeunit for testing, which I find allows me to write tests quickly and painlessly. In this ...
0
votes
1
answer
73
views
What to test in this project?
Every developer advocates test-driven development, but I am coding a website in NodeJS and I am not testing my app.
This is not because I don't see any reason. I know it allow me to check at each ...
5
votes
1
answer
2k
views
Node.JS testing with Jasmine, databases, and pre-existing code
I've recently built the start of a core system which is likely going turn into a monster product. I'm building the system with node.js, and decided after I got a small base built, that It'd be a ...