matheshar / simple-build-tool

Automatically exported from code.google.com/p/simple-build-tool
Other
0 stars 0 forks source link

prevent SBT from trying to execute abstract classes with JUnit test methods #146

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem (please be specific)?
Create an abstract class in Java (and probably a trait in Scala) with methods 
marked as @Test.

What is the expected behavior? What do you see instead?
Subclasses should get executed as tests, but not the abstract class. Instead I 
see errors running them as if they are regular tests.

What versions of the following are you using?

Java: 1.6
Scala: 2.8.1
sbt: 0.7.4
Operating system: Windows/Cygwin

Please provide any additional information below.

Original issue reported on code.google.com by motlin on 15 Feb 2011 at 3:27

GoogleCodeExporter commented 8 years ago
Issue doesn't exist in 0.9.  Leaving open until there is a test case, though.

Original comment by dmhar...@gmail.com on 22 Feb 2011 at 1:01

GoogleCodeExporter commented 8 years ago
I realize this won't be an issue going forward, but I can reproduce this 
running 
Java: 1.6
Scala 2.9.0-1
sbt 0.7.5
Operating system: Ubuntu Linux 11.04

For a JUnit 4 test case, it can be resolved by adding the @Ignore annotation to 
the abstract test class.

Original comment by robert.j...@gmail.com on 20 Jun 2011 at 3:59