Re: Tests not running on Maven

2019-12-09 Thread Jeronimo
It Worked!! New version of pom.xml $ cat pom.xml http://maven.apache.org/POM/4.0.0; xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd;> 4.0.0 br.edu.ifrs totalinventory 1.0-SNAPSHOT

Re: Tests not running on Maven

2019-12-09 Thread Tibor Digana
Hi Jeronimo, The old version of Surefire and Failsafe required to have the Junit5 engine in the test dependency. But you do not have to declare it if you use the version 3.0.0-M4. It's enough to have only Junit Jupiter API in the test dependency. The plugin will find out the engine from Junit5.

Re: Tests not running on Maven

2019-12-09 Thread Karl Heinz Marbaise
Hi, first you have to use junit-jupiter-engine[1] instead of api apart from that you won't be able to get that running cause JUnit Jupiter requires JDK8+ (see [2]). furthermore dependencies to junit provider is simply not needed cause this is automatically done by

Tests not running on Maven

2019-12-09 Thread Jeronimo
Hi, I am using Maven 3.6 $ mvn -version Apache Maven 3.6.0 Maven home: /usr/share/maven Java version: 11.0.4, vendor: Ubuntu, runtime: /usr/lib/jvm/java-11-openjdk-amd64 Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "5.0.0-37-generic", arch: "amd64", family: "unix"

Checking if tests are running under maven

2004-09-22 Thread James . Shute
Is there any way at runtime for a test to know if it is running under maven (as opposed to having been invoked in the IDE)? Why? Some of the developers on my team comment out tests during development to only run a sub-set (as Eclipse doesn't seem to let you just run a single test easily any

RE: Checking if tests are running under maven

2004-09-22 Thread Jörg Schaible
[EMAIL PROTECTED] wrote on Wednesday, September 22, 2004 11:46 AM: Is there any way at runtime for a test to know if it is running under maven (as opposed to having been invoked in the IDE)? Why? Some of the developers on my team comment out tests during development to only run a sub-set

Re: Checking if tests are running under maven

2004-09-22 Thread Martijn Dashorst
[EMAIL PROTECTED] wrote: Why? Some of the developers on my team comment out tests during development to only run a sub-set (as Eclipse doesn't seem to let you just run a single test easily any other way) Right click on the test, select run, select run JUnit-test If you wish to run all tests in

RE: Checking if tests are running under maven

2004-09-22 Thread James . Shute
are running under maven [EMAIL PROTECTED] wrote: Why? Some of the developers on my team comment out tests during development to only run a sub-set (as Eclipse doesn't seem to let you just run a single test easily any other way) Right click on the test, select run, select run JUnit-test If you

Re: Checking if tests are running under maven

2004-09-22 Thread Martijn Dashorst
[EMAIL PROTECTED] wrote: I think this only applies to Eclipse 3.0? We're on 2.1 still as the clearcase support in 3.0 is currently pretty terrible Ok, if you're stuck on 2.1 then perhaps you could define TestSuites (one for each developer): public class Developer1Suite() extends TestCase {

RE: Checking if tests are running under maven

2004-09-22 Thread James . Shute
Nice idea - seems to do what I need - thanks James -Original Message- From: Martijn Dashorst [mailto:[EMAIL PROTECTED] Sent: 22 September 2004 11:51 To: Maven Users List Subject: Re: Checking if tests are running under maven [EMAIL PROTECTED] wrote: I think this only applies