Can't run Scalatest with Gradle

前端 未结 5 499
醉梦人生
醉梦人生 2021-02-02 09:28
task scalaTest(dependsOn: testClasses) << {
    description = \'Runs Scalatest suite\'
    ant.taskdef(name: \'scalatest\',
            classname: \'org.scalatest.         


        
5条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-02 09:51

    This response may be a bit late. But for one using scala with gradle (5.x), the following works.

    Add the following plugin to gradle.

    plugins {
      id "com.github.maiflai.scalatest" version "0.25"
    }
    

    To run the code

    > gradle test
    

    As a bonus the test results from the above plugin would also be reported better than the default report.

提交回复
热议问题