fitnesse
fitnesse copied to clipboard
One unit test fails
I'm receiving the following error from a unit test which fails at line 102:
Very strange. Do you have any local changes? I don't recall having this problem locally and the travis-ci build is also green...
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:
I ran into the same problem locally today. I have not looked into more detail yet
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 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:
And this:
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)
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:
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?
Are you on Windows? I suspect this is the same problem as #1254
@superzaky Could you copy and paste the stack trace into GitHub?