Skip to content

Commit

Permalink
Item11440: add dummy test, avoid silently skipping
Browse files Browse the repository at this point in the history
Previously, the default UnitTestContrib config results in zero tests
being generated, so a dummy test means there's always at least one
test and the skip annotation can then inform the user why no tests
were generated in the output summary.

Without this we get silent skippage, and that's not good.

git-svn-id: http://svn.foswiki.org/trunk@13869 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
PaulHarvey authored and PaulHarvey committed Jan 30, 2012
1 parent 70e7641 commit 5d3a0ab
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions WysiwygPlugin/test/unit/WysiwygPlugin/BrowserTranslatorTests.pm
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,18 @@ sub compareHTML_TML {
$this->assert_tml_equals( $args->{tml}, $actualTml, $args->{name} );
}

# Item11440 - dummy test, do not remove. skip() is never called if list_tests()
# returns nothing (why bother skipping zero tests), and this is the case with
# the (default) empty $Foswiki::cfg{UnitTestContrib}{SeleniumRc}{Browsers}
#
# We would rather a bogus dummy test which gives a meaningful skip annotation
# in the result summary, than to silently skip a suite which contains zero tests
sub test_nothing {
my ($this) = @_;

return;
}

1;

__END__
Expand Down

0 comments on commit 5d3a0ab

Please sign in to comment.