| Newsgroups |
gmane.comp.java.junit.user |
| Message-ID |
<[email protected]> |
As Colin said, it’s difficult to help without more details.
To start with, when the test fails, is it the actual or the expected that is not correct?
In other words, is the data being generated failing — or is something modifying your expected data in the filesystem?
On Jul 22, 2014, at 5:45, Colin Vipurs [email protected] [junit] <[email protected]> wrote:
>
> 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.
>
>
---
Charles A Sharp
636.293.6574