When you run tests in parallel with scalatest, you can miss some allure-results files. For example, this case bring only 1 result.json
file to allure-results
directory (expected 2):
trait CommonTest extends AnyFunSpec with BeforeAndAfterAll { lazy val log: Logger = LoggerFactory.getLogger(this.getClass) override def beforeAll: Unit = { log.info("Before sleep") Thread.sleep(3500) log.info("After sleep") super.beforeAll } }
class SimpleTest1 extends CommonTest { it("SimpleTest1_1")(new AllureScalatestContext { log.info("SimpleTest1_1 started") Thread.sleep(10000) log.info("SimpleTest1_1 finished") }) }
class SimpleTest2 extends CommonTest { it("SimpleTest2_1")(new AllureScalatestContext { log.info("SimpleTest2_1 started") Thread.sleep(2000) log.info("SimpleTest2_1 finished") })
Other environment:
allure-scalatest
What version of Allure Integration you are using?2.13.2
What version of Allure Report you are using?2.22.0
Code of ConductRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4