Re: JUnit Inconsistencies

"Colin Vipurs [email protected] [junit]" <[email protected]> Tue, 22 Jul 2014 13:45:18 +0300
Newsgroups gmane.comp.java.junit.user
Message-ID <CAKi42700DMi0Gt9AoaERc-gA7o9GwjSg4HcLuBdJcuyUOnkMiQ@mail.gmail.com>
My guess would be is that something, somewhere is modifying your system,
meaning your test isn't completely isolated.   Without knowing more about
your code it's hard to pinpoint, but things I'd be looking for are static
state modifiers.

If it's not that, it's possible it's a timing issue.  Do you have anything
running async anywhere?


On Tue, Jul 22, 2014 at 12:20 PM, [email protected] [junit] <
[email protected]> wrote:

>
>
> Hi all,
> I have written a JUnit test case for the comparison of a data from files.
> Expected result is present in a file and actual is coming through the
> execution. Lets call this test case as compareDataTest.
>
> I have around 200 unit test cases in the same project.
>
> When I run ONLY compareDataTest TEST CASE, IT ALWAYS PASSES.
>
> But, when I run all the test cases from the project,  compareDataTest
> some times passes and some times fails.
>
> There is no dependency on other test cases. I tried restarting my IDE and
> even the system which doesn't look like working.
>
> Has anyone faced this ? what might be the possible solution... ?
>
> Regards,
> Arshad
>
>
>  
>



-- 
Maybe she awoke to see the roommate's boyfriend swinging from the
chandelier wearing a boar's head.

Something which you, I, and everyone else would call "Tuesday", of course.