A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/allure-framework/allure-java/issues/945 below:

[allure-scalatest] Missed some test results in parallel execution · Issue #945 · allure-framework/allure-java · GitHub

What happened?

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:

  1. Java 11
  2. SBT 1.8.2
  3. Scala 2.12.15
What Allure Integration are you using?

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 Conduct

RetroSearch 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