fitnesse icon indicating copy to clipboard operation
fitnesse copied to clipboard

One unit test fails

Open superzaky opened this issue 5 years ago • 9 comments

I'm receiving the following error from a unit test which fails at line 102: image

superzaky avatar Feb 22 '20 14:02 superzaky

Very strange. Do you have any local changes? I don't recall having this problem locally and the travis-ci build is also green...

fhoeben avatar Feb 22 '20 14:02 fhoeben

Very strange. Do you have any local changes? I don't recall having this problem locally and the travis-ci build is also green...

I've only edit some wiki pages, but I didn't touch the code: image

superzaky avatar Feb 22 '20 15:02 superzaky

I ran into the same problem locally today. I have not looked into more detail yet

fhoeben avatar Feb 22 '20 23:02 fhoeben

I did a ./gradlew clean and now all tests are green for me.

Please note the stack trace you see in the console output (in your first screenshot) is not unexpected. That is not what makes the test fail.

fhoeben avatar Feb 23 '20 08:02 fhoeben

I did a ./gradlew clean and now all tests are green for me.

Please note the stack trace you see in the console output (in your first screenshot) is not unexpected. That is not what makes the test fail.

I also did a ./gradlew clean but the test still fails. My apologies I missed some log info to show you:

image

And this: image

superzaky avatar Feb 29 '20 17:02 superzaky

What I see in your screenshot is that one of the acceptance (FitNesse) tests fails. But I can't see which test fails (its name is too long and not visible in IntelliJ's Test Results pane. Can you scroll that pane all the way to the right and get the full page name? Does that test succeed when you run it from the wiki?

Initially I thought you were running an individual jUnit test from IntelliJ, but now I see that you are doing something else. Are you running all tests in the 'test' directory from IntelliJ? I never run all tests that way. I either run the gradle 'test' task (either from the command line or IntelliJ). Is the test also failing via gradle's test task? (e.g. when running ./gradlew clean test from the command line)

fhoeben avatar Mar 01 '20 08:03 fhoeben

What I see in your screenshot is that one of the acceptance (FitNesse) tests fails. But I can't see which test fails (its name is too long and not visible in IntelliJ's Test Results pane. Can you scroll that pane all the way to the right and get the full page name? Does that test succeed when you run it from the wiki?

Initially I thought you were running an individual jUnit test from IntelliJ, but now I see that you are doing something else. Are you running all tests in the 'test' directory from IntelliJ? I never run all tests that way. I either run the gradle 'test' task (either from the command line or IntelliJ). Is the test also failing via gradle's test task? (e.g. when running ./gradlew clean test from the command line)

Ah ok here is a screenshot to show more info of the pane: image

I don't know how to run the test from the wiki. Yes I ran tests from the 'test' directory by right clicking them and then I choose Run 'Tests in fitnesse....' That's what it literally shows me. I also ran the gradle 'test' task as you've seen above in the screenshot. I gave them blue circle markers to show you where I'd clicked. But that 1 test still fails because of a time out as slim server dies before connecting?

superzaky avatar Mar 01 '20 17:03 superzaky

Are you on Windows? I suspect this is the same problem as #1254

fhoeben avatar Mar 01 '20 18:03 fhoeben

@superzaky Could you copy and paste the stack trace into GitHub?

woodybrood avatar Apr 26 '20 22:04 woodybrood