Skip to content

scala-cli test --native fails with "No framework found by Scala.js test bridge" #4017

@mattlianje

Description

@mattlianje

Version(s)
1.10.1

Describe the bug
Hello - and many thanks for your work!

Running scala-cli test --native with any test lib compiles and links successfully ... but fails with some misleading error about Scala.js test bridge, even though no JS platform is involved.

To Reproduce

//> using scala 3.5
//> using platform jvm native
//> using dep "org.scalameta::munit::1.2.1"

class SimpleTest extends munit.FunSuite {
    test("foo") {
        assertEquals(1 + 1, 2)
    }
}
scala-cli test . --platform native

Expected behaviour
Tests run on Native

Actual

 [error]  No framework found by Scala.js test bridge

Environment

  - Scala Native: 0.5.9
  - OS: Linux

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions