-
-
Notifications
You must be signed in to change notification settings - Fork 728
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allure plugin doesnt generate report when running parallel execution in jenkins #1706
Comments
Hi, I am using more plugins for allure and working for me. My Plugins; const plugins = {
allure: {
outputDir: OUTPUT_DIR
},
screenshotOnFail: {
enabled: true
},
stepByStepReport: {
enabled: true,
output: OUTPUT_DIR
}
} |
@yusufilkeroguz are you running them on jenkins or on local? Can you also share your config where you have configured it for multiple parallel execution. |
I am using allure on local. This is my config; {
"output": "./output",
"helpers": {
"WebDriver": {
"url": "[URL]",
"smartWait": 5000,
"browser": [
"chrome",
"safari"
],
"restart": false,
"windowSize": "1920x1080",
"user": "[BS_USER]",
"key": "[BS_PASS]",
"protocol": "http",
"host": "hub-cloud.browserstack.com",
"waitForTimeout": 15000,
"timeouts": {
"script": 45000,
"implicit": 15000,
"pageLoad": 30000
},
"capabilities": {
"build": "[BuildName]",
"project": "[ProjectName]",
"resolution": "1920x1080",
"os": "OS X",
"os_version": "Mojave",
"acceptSslCerts": true,
"browserstack.debug": true,
"browserstack.networkLogs": true,
"browserstack.local": true
}
},
"WebDriverHelper": {
"require": "./helpers/WebDriver.js"
}
},
"plugins": {
"allure": {
"outputDir": "./output"
},
"screenshotOnFail": {
"enabled": true
},
"stepByStepReport": {
"enabled": true,
"output": "./output"
},
},
"multiple": {
"basic": {
"browsers": [
{
"browser": "safari",
"desiredCapabilities": {
"browserName": "Safari",
"browser_version": "12.1",
"resolution": "1920x1080",
"timeouts": {
"script": 45000,
"implicit": 15000,
"pageLoad": 30000
}
}
}
]
}
},
"include": {
"I": "./steps_file.js"
},
"mocha": {},
"bootstrap": false,
"teardown": null,
"hooks": [],
"gherkin": {
"features": "./features/*.feature",
"steps": [
"./features/step_definitions/happy-path.js",
"./features/step_definitions/landing.js"
]
},
"tests": "./features/step_definitions/*.js",
"timeout": 10000,
"name": "[NAME]"
}
|
@yusufilkeroguz I dont have problems running it on local. This issue happens when you run on Jenkins |
@yusufilkeroguz I would highly suggest you setup your plugin in a similar way to this: allure: {
enabled: true,
outputDir: './output/allure/allure-results',
}, In which case in your jenkins setup the path would be this |
Facing the same issue not able to generate allure report when we use |
@bhautikbpatel are you testing against latest version of codeceptjs. I'm able to see the generated allure report after the tests are executed. Thanhs-MacBook-Pro:pizza-ui-tests thanhnguyen$ npx codeceptjs run-multiple --all
creating output directory: /Users/thanhnguyen/Desktop/pizza-ui-tests/output/parallel_chunk1_4697d80bdefdef94aaba8756c0032a6f_1
[1.parallel:chunk1:default] CodeceptJS v2.3.5
[1.parallel:chunk1:default] Using test root "/Users/thanhnguyen/Desktop/pizza-ui-tests"
[1.parallel:chunk1:default] Login functionality --
[1.parallel:chunk1:default] ✔ Login with valid creds @C1 in 1057ms
[1.parallel:chunk1:default] S Login with valid creds @C2
[1.parallel:chunk1:default] OK | 1 passed, 1 skipped // 3s |
@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:
Solution:
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: Could you help with this please? Thank you. |
allure plugin is now maintained by allure team https://github.com/allure-framework/allure-js/tree/master/packages/allure-codeceptjs |
I have trying to generate reports using allure plugin when running tests in parallel
When looking at the report output, I see nothing getting populated
# paste output here
Jenkins allure report config
output as you see in jenkins
Details
*WebDriverIO
The text was updated successfully, but these errors were encountered: