I am using allure with webdriverio and mocha.After generate and opening. The report consist test cases which is not in test suite any more. Tried allure generate --clean but still getting the same result. When i delete every thing from allure result then it works .
Asked
Active
Viewed 719 times
0

M Sohaib Khan
- 128
- 2
- 10
-
Test cases with red cross does not exist in test suite – M Sohaib Khan Sep 27 '18 at 15:59
1 Answers
1
You need to clean up the allure-results
directory after each test run. You can do that manually, or prepend it to whatever command you're using to run your test. For example, if you're using npm scripts, you could do something like:
"scripts": {
"pretest": "rimraf allure-results",
"test": "wdio"
}
This uses the 'rimraf' npm module: https://www.npmjs.com/package/rimraf

Kevin Lamping
- 2,292
- 16
- 20