freepascal / mockito

Automatically exported from code.google.com/p/mockito
0 stars 0 forks source link

Can't Run Single Test without Unrooted Tests in Eclipse 3.5 with MockitoJUnitRunner #109

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Steps to reproduce:
1. Write a test class annotated with @RunWith(MockitoJUnitRunner.class)
2. Attempt to run one test method in Eclipse 3.5

Expect to see just that test run.  Instead the selected test is run, and
then the rest of the tests are run and show up under a group labeled
"Unrooted tests."

This happens with Mockito 1.8.0, but not with Mockito 1.7 (when there were
separate runners for the different JUnit versions).

Original issue reported on code.google.com by stephen....@gmail.com on 29 Jul 2009 at 11:09

GoogleCodeExporter commented 9 years ago
I confirm, I was able to reproduce. 

We're looking for a volunteer to fix this.

Thanks for reporting!

Original comment by szcze...@gmail.com on 29 Jul 2009 at 12:32

GoogleCodeExporter commented 9 years ago
I have a similar issue in IntelliJ IDEA (8.1.3) with Mockito 1.8.0:

If I try to run just one test, it seems all tests, or at least most of them are 
run
(it seems to skip the first one for some reason). They are all named like the 
one I
attempted to run, but from the results I can see that it is not the same test 
run
over and over again.

The problem was not there in Mockito 1.7.

Original comment by daniel.b...@gmail.com on 22 Sep 2009 at 8:26

GoogleCodeExporter commented 9 years ago

Original comment by szcze...@gmail.com on 11 Nov 2009 at 9:01

GoogleCodeExporter commented 9 years ago
This has been a minor annoyance to me for awhile now... I'll dive in and see 
what I can 
do to fix it. 

Original comment by james.r....@gmail.com on 19 Jan 2010 at 4:49

GoogleCodeExporter commented 9 years ago
After some exploring, it seems to boil down to not implementing the Filterable 
interface that BlockJUnit4Runner implements... this is what allows runners in 
eclipse 
and intelliJ only run one of the selected tests. I'll put together a test and 
submit a 
patch.

Original comment by james.r....@gmail.com on 19 Jan 2010 at 5:43

GoogleCodeExporter commented 9 years ago
This should work. I've added corresponding test cases in JUnit44RunnerTest and 
Junit45RunnerTest

Original comment by james.r....@gmail.com on 19 Jan 2010 at 6:03

Attachments:

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r1826.

Original comment by szcze...@gmail.com on 20 Jan 2010 at 10:33

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r1827.

Original comment by szcze...@gmail.com on 20 Jan 2010 at 10:33

GoogleCodeExporter commented 9 years ago
Issue 167 has been merged into this issue.

Original comment by szcze...@gmail.com on 1 Feb 2010 at 11:01

GoogleCodeExporter commented 9 years ago

Original comment by szcze...@gmail.com on 28 Feb 2010 at 9:04