Skip to content

Executing scala tests #503

@orrsella

Description

@orrsella

Any existing workaround to use java_test for executing scala tests (similar to #443), or is there a different approach to substitute the lack of scala_test for now? Scala test classes usually use org.junit.runner.RunWith and a custom JUnitRunner to execute (like this one for specs2).

Simple example:

package com.example

import org.junit.runner.RunWith
import org.specs2.mutable.Specification
import org.specs2.runner.JUnitRunner

@RunWith(classOf[JUnitRunner])
class HelloWorldTest extends Specification {

  "HelloWorld" should {
    "have the correct message" in {
      HelloWorld.message must_== "Hello world!"
    }
  }
}

Metadata

Metadata

Assignees

Labels

P3We're not considering working on this, but happy to review a PR. (No assignee)type: feature request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions