Skip to content

test should warn when multiple test frameworks are on the classpath #3620

@scarf005

Description

@scarf005

Version(s)
Scala code runner version: 1.7.1
Scala version (default): 3.6.4

Describe the bug

adding //> using toolkit default to scalatest file

To Reproduce

main.test.scala

//> using test.dep org.scalatest::scalatest::3.2.19

import org.scalatest.flatspec.AnyFlatSpec

class ExampleSpec extends AnyFlatSpec:
    "example" should "work" in { assertResult(1)(1) }
scala --cli-version 1.7.1 test .
Compiling project (test, Scala 3.6.4, JVM (23))
Compiled project (test, Scala 3.6.4, JVM (23))
ExampleSpec:
example
- should work
Run completed in 221 milliseconds.
Total number of tests run: 1
Suites: completed 1, aborted 0
Tests: succeeded 1, failed 0, canceled 0, ignored 0, pending 0
//> using test.dep org.scalatest::scalatest::3.2.19
//> using toolkit default

import org.scalatest.flatspec.AnyFlatSpec

class ExampleSpec extends AnyFlatSpec:
    "example" should "work" in { assertResult(1)(1) }
scala --cli-version 1.7.1 test .
Compiling project (test, Scala 3.6.4, JVM (23))
Compiled project (test, Scala 3.6.4, JVM (23))

Expected behaviour

importing toolkits shouldn't prevent scalatest from working silently.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions