dockunit | Containerized unit testing across any platform | Continous Integration library
kandi X-RAY | dockunit Summary
kandi X-RAY | dockunit Summary
Containerized unit testing across any platform and programming language
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Helper function for executing code scripts .
dockunit Key Features
dockunit Examples and Code Snippets
Community Discussions
Trending Discussions on dockunit
QUESTION
I am trying to run mocha unit test for my node application. The application is built by a docker image.
Docker image:
...ANSWER
Answered 2017-Mar-27 at 07:26With docker
(and docker-compose
), you can run arbitrary commands in a container. The Dockerfile
defines the default command that is run when no other command is specified, but that doesn't mean it's the only one you can run.
In your case: npm start
is run when no other command is specified. That happens when you do docker-compose up
.
But, you can run any command using docker run
or docker-compose run
. For your tests, that might look like this: docker-compose run web mocha
.
There is a slight difference in up
and run
, and I encourage you to read up on it: Should I use docker-compose start up or run?
Does this help you get started?
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install dockunit
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page