No tests are found.

2 views
Skip to first unread message

NaHeon Kim

unread,
Feb 4, 2017, 11:08:41 AM2/4/17
to Maven and Scala
Hi All,

I have few scalatest specs, but they aren't finding in mvn test.
I checked test specs are compiled and are places under target/test-classes.

I follow normal setup, no additional surefire or scalatest maven plugin.

    <build>
        <sourceDirectory>src/main/scala</sourceDirectory>
        <testSourceDirectory>src/test/scala</testSourceDirectory>
        <plugins>
            <plugin>
                <groupId>net.alchim31.maven</groupId>
                <artifactId>scala-maven-plugin</artifactId>
                <version>3.2.1</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>compile</goal>
                            <goal>testCompile</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <scalaVersion>${scala.version}</scalaVersion>
                    <args>
                        <arg>-target:jvm-1.7</arg>
                    </args>
                </configuration>
            </plugin>
    ...
    </build>

Thank you in advance!

Regards,
NaHeon

NaHeon Kim

unread,
Feb 5, 2017, 8:31:51 PM2/5/17
to Maven and Scala
I resolved it :-)

NaHeon

2017년 2월 5일 일요일 오전 1시 8분 41초 UTC+9, NaHeon Kim 님의 말:
Reply all
Reply to author
Forward
0 new messages