Allure plugin doesnt generate report when running parallel execution in jenkins
See original GitHub issueI have trying to generate reports using allure plugin when running tests in parallel
When looking at the report output, I see nothing getting populated
Provide console output if related. Use
--verbose
mode for more details.
# paste output here
Provide test source code if related
exports.config = {
tests: './specs/*_test.js',
output: './output',
helpers: {
WebDriver: {
url: "http://hub-cloud.browserstack.com/wd/hub",
browser: "chrome",
smartWait: 5000,
restart: true,
user: "username",
key: "key",
capabilities: {
"os": "Windows",
"os_version": "10",
"browserName": "Chrome",
"browser_version": "72.0",
"project": "codecept-wdio-qa",
"build": "Build1.0",
"browserstack.local": true,
"browserstack.debug": true
},
host: "hub-cloud.browserstack.com"
}
},
plugins: {
wdio: {
enabled: true,
services: ['selenium-standalone']
},
allure: {
enabled: true
}
},
multiple: {
parallel: {
// Splits tests into 2 chunks
chunks: 2
}
},
include: {
I: './steps_file.js'
},
bootstrap: null,
mocha: {},
name: 'codeceptjs-e2espec-tests'
};
Jenkins allure report config
output as you see in jenkins
Details
- CodeceptJS version:
- NodeJS Version:
- Operating System: *WebDriverIO
Issue Analytics
- State:
- Created 4 years ago
- Comments:10
Top Results From Across the Web
Allure plugin doesnt generate report when running parallel ...
I have trying to generate reports using allure plugin when running tests in parallel When looking at the report output, I see nothing ......
Read more >Allure reports in parallel test pipeline in Jenkins - Stack Overflow
i understand that allure cannot split parallel execution to generate two different reports. maybe at least allure is able to record results of ......
Read more >allure-framework/allure-core - Gitter
The report generate successfully for parallel execution. When I use this for cross browser testing, it will only display one set of browser...
Read more >xUnit - Jenkins Plugins
This plugin makes it possible to record xUnit test reports. ... Execute your testing tools manually or as a step of your build...
Read more >Publishers — Jenkins Job Builder 3.12.1.dev9 documentation
Example: publishers: - aggregate-tests: include-failed-builds: true. allure ¶. Publish Allure report for the build. Requires the Jenkins Allure Plugin.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@auto-qa-git if you look in the screenshots that you posted, you can see your problem there but let me guide you through this:
allure serve
command output.Solution:
codecept.conf.js
allure plugin config:
In your jenkins allure plugin config the path needs to be the same as above: “output/allure/allure-results”
I used a groovy file for my jenkins pipeline so here’s how my allure reports are generated:
Try this out and let me know if you need more help with this.
@GSasu Hi, thank you so much for your explanation. Earlier I tried this and it worked: I am using allure on local. No Jenkins at the moment. However, when I change to outputDir: ‘./output/allure/allure-results’ I am having the same issue as before. It is a faulty report (showing 0 Test Cases etc… even though several test cases did run). And I still see this line in the console: Is it only in codecept.conf.js that I have to specify the directory? And again - I am running my tests and using allure on local. I would go with what’s working now but I am having another problem which might be related: The issue that I am having is that when I run the test with parallel execution on say chrome and firefox, I get the results of only one. I do not get the report showing all test case results with the browser for each. I am aiming to have a report similar to this:
Could you help with this please? Thank you.