scala - Gradle test builds but no report -


I do not see my report after running gradle test .

My build script is:

  Apply the plugin: 'scala' archivesBaseName = 'playground' repositories {mavenLocal () mavenCentral () maven {url 'http: // conjars.org/repo/ 'artifactUrls' http: //clojars.org/repo/a?a' ArtifactUrls 'http://maven.twttr.com/'}} dependency {compile 'org.scala-lang: scala-compiler: 2.9.2' compilation 'org.scala-lang: Scala-Library: 2. 9.2' compilation "Orgkapachekhadoop: Thaup-core: 1.2.1 'compile' com.twitter: scalding_2.9.2: 0.8.1 'compilation' cascading: cascading-core: 2.1.6 'compilation' cascading: cascading-Hadup: 2.1 .6 'testcompile' org.testng: testng: 6.8.7 'testcompile' org.easytesting: festival assert: 1.4 'testcompile' org.scala-tools.testing: specs: Lk6k2k2_lk5k0 '} test {useTestNG {{}} {{}} {{Main category ":" com.twitter.scalding.Tool ")}} {{configurations.compile} connects a handop-ready JAR file to {{lib} / code>  

And my test looks like this:

  Import. Com.twitter.scalding. {Fildkonvreshn, SSV, Jobtest, Tuple Knansens} import cascading.tuple. Field import Org.testng.annotations. Test import org.scalatest.testng.TestNGSuite import runner._ class NameSumTest TestNGSuite extends {@Test def testNameSum () = {val inputFileName ( "Michelle", "Jackson")) JobTest ( "org.playground.NameSum"). arg ( "input", inputFileName) arg ( "output", Autputfailnam) Source (SSV (Inputfailnam, ( "First Name, Last Name)), data) sink [(String, String)] (SSV (Autputfailnam)) { Ob = & gt; Val map = ob.toMap [string, string] emphasis (map ("John") == 1}}} .run.finish}}   

This builds correctly but the summary Have not got it The issuing gradle test -i indicates that there is a missing source:

  ~ / projects / playground / build / classes / test 'not found, work Skip 'test' because there is no source file in it   

Make sure some idiots are missing ...

Chances are that you have placed the test source file in the wrong directory By default, Scala test sources are src / test / scala .

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -