Skip to content

PHP Fatal Error gives partial suite result, with no easy hint of what's going on #5

@jplambert

Description

@jplambert

Hi,

We are using FitNesse with the phpslim runner and integrated it with Jenkins.

Sometimes the PHP fixtures gets a Fatal Error for many possible reasons. (an easy to reproduce case would be a syntax error in the PHP)

That kills the PHP process and stops the Slim runner. This is kind of obvious when running the same suite manually: the FitNesse output is clearly missing something, and we can have a look at the "Output captured" and see the Fatal Error. However, when running by Jenkins, we only see that a handful of tests has run instead of the complete suite. (like Jenkins says there is now 3 tests instead of 6, but other than that there is nothing warning that it went horribly wrong)

For now our FitNesse practices are still young and our base of tests is small, so we detect immediately when that happens. However, that can easilly give the feeling that FitNesse is not reliable and I can imagine that when the test suite will be much bigger that it could go unnoticed during several days.

Do you think it would be possible:

  • To catch such Fatal Error to make a single test fail but not crash the whole Suite?
  • Alternatively (maybe better but not sure it is possible given the integration between FitNesse and Jenkins) make Jenkins consider the build as Failed in that case instead of considering the provided results of the test suite as if nothing special happened.

What do you think?

Thanks in advance,

JP

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions