Closed kumarpatel closed 5 years ago
Maybe you forgot to rebuild the Docker image?
I don't have plans to add additional packages to the blueimp/wdio Docker image.
The purpose of this project is more like a starter kit, so it's recommended to fork it and create your own Docker Hub Automated build if you require additional software inside the Docker image.
So if you make changes to the Dockerfile, you should build your own image, e.g.:
docker build -t YOUR_USERNAME/wdio .
Then in docker-compose.yml, replace blueimp/wdio
with YOUR_USERNAME/wdio
.
Also, the Allure outputDir
must be in a writable directory, for example reports/allure
:
exports.config = Object.assign({}, require('./hooks'), {
// ...
reporters: [
'spec',
[
'allure',
{
outputDir: 'reports/allure',
disableWebdriverStepsReporting: true,
disableWebdriverScreenshotsReporting: true
}
]
],
// ...
})
oh, I see. I'll give that approach a try. Thanks again for your help.
I tried added
@wdio/allure-reporter
to the npm global install list in Dockerfileand added the config in wdio.conf.js
Here's the error I get
Thoughts on what I'm doing wrong?