New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test History shows tests with exceptions only as failed. Should be errored to be consistent #237

Closed
woodybrood opened this Issue Apr 4, 2013 · 0 comments

Comments

Projects
None yet
1 participant
@woodybrood
Collaborator

woodybrood commented Apr 4, 2013

I have a Fitnesse suite with a path to the results like

http://localhost/FrontPage.AutomatedTesting.FlightScenarios.Storage?pageHistory&resultDate=20130402183449

Here, all tests have completed successfully and marked as green. Sometimes (not always), I have an exception when running these tests. Something like ...

__EXCEPTION__:java.lang.IndexOutOfBoundsException: Illegal start index
    at java.util.regex.Matcher.find(Unknown Source)
    at fitnesse.slim.VariableStore.replaceSymbolsInString(VariableStore.java:63)
    at fitnesse.slim.VariableStore.replaceSymbol(VariableStore.java:53)

...

As a consequence, I have the result string marked yellow:

Storage     36 Right    0 Wrong     0 Ignores   1 Exceptions    485072 ms 

I don't want to go into details why I have this exception. All I want to say is at the moment I'm OK with having this exception and yellow notation.

What I don't like:

In the TestHistory ...

http://localhost/FrontPage.AutomatedTesting.FlightScenarios.Storage?testHistory

... I have these tests marked as red (I think, due to the exception described above). Something like ...

Page    Pass    Fail    Latest  Last 20 Results
FrontPage.AutomatedTesting.FlightScenarios.Storage  68  18  02 Apr, 13 18:34    -   +   -   +   +   +   -   +   

... where "+" is marked as green when all tests are successful and there are no exceptions, and "-" is marked as red (not yellow) for two different cases:

  1. some tests are red

  2. all tests are green, but there is an exception

What I want:

In TestHistory, "-" is marked as yellow when all tests are green, but there is an exception.

... then I know, that I have 36 tests, 0 wrong, 0 ignored, 1 exception. So I rename this file to 20130325203754_36_0_0_0.xml from external test runner. After that, red turns to green in testHistory. Not yellow, but better than red, at least for me at the moment.

Any other suggestions? I would vote for the ability to tune this thing in Fitnesse itself.

Thanks,
Racoon

@amolenaar amolenaar closed this in 8a97dd8 Apr 4, 2013

antoine-aumjaud pushed a commit to antoine-aumjaud/fitnesse that referenced this issue Jun 12, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment