Docker image for codeceptjs
280
This image include WebDriverIO for codeceptjs. Also installed mochawesome reporter plugin
/codeceptjs/tests/codeceptjs/output/codeceptjs/reporter_outputIf you want to use your custom configuration mount your path/to/config to /codeceptjs/extras
-v path/to/config:/codeceptjs/extras
filename: codecept.conf.js
Sample
exports = {
"tests": "./tests/*_test.js", // Tests directory
"timeout": 10000, // Test timeout
"output": "./output", // Screenshot output
"helpers": {
"WebDriverIO": {
"host": "localhost", // Selenium url,
"url": "http://google.com/",// Target url
"browser": "chrome", // Testing browser
"windowSize": "1920x1080" // Window size [ default: 1920x1080 ]
}
},
}
filename: steps_file.js
Sample
'use strict';
// in this file you can append custom step methods to 'I' object
module.exports = function() {
/* jshint -W117 */
return actor({
});
};
This sample will using supervisor for re-run test by automatic when test file has changed
selenium/standalone-chromeCreate docker-compose.yml on root path
version: '2'
services:
codeceptjs:
image: soulmaneller/codeceptjs-alpine-ready
command: supervisor -w tests -x codeceptjs -n exit -- run --reporter mochawesome
links:
- chrome:selenium # Set hostname of selenium this must match WebDriverIO hostname
volumes:
- ./path/to/test/files:/codeceptjs/tests
- ./output:/codeceptjs/output
- ./reporter_output:/codeceptjs/reporter_output
chrome:
image: selenium/standalone-chrome
Start testing docker-compose up from root path
Content type
Image
Digest
Size
50.4 MB
Last updated
over 9 years ago
docker pull soulmaneller/docker-codeceptjs-alpine-ready