Changeset 8078


Ignore:
Timestamp:
07/08/10 20:41:19 (23 months ago)
Author:
MichaelTempest
Message:

Item1326: Give a more meaningful (and hopefully more helpful) explanation as to why selenium-based tests are being disabled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UnitTestContrib/test/unit/FoswikiSeleniumTestCase.pm

    r8076 r8078  
    9999    my @set = $this->SUPER::list_tests($suite); 
    100100 
     101    unless ( $Foswiki::cfg{UnitTestContrib}{SeleniumRc}{Browsers} ) { 
     102        print STDERR "There are no browsers configured in " 
     103          . "\$Foswiki::cfg{UnitTestContrib}{SeleniumRc}{Browsers}, " 
     104          . "skipping Selenium-based tests\n"; 
     105        return; 
     106    } 
     107 
    101108    if ( $this->{useSeleniumError} ) { 
    102109        print STDERR 
    103           "Cannot run Selenium-based tests: $this->{useSeleniumError}"; 
     110          "Cannot run Selenium-based tests: $this->{useSeleniumError}\n"; 
    104111        return; 
    105112    } 
     
    110117    my ( $this, $suite ) = @_; 
    111118 
     119    unless ( $Foswiki::cfg{UnitTestContrib}{SeleniumRc}{Browsers} ) { 
     120 
     121        # Message is already reported from list_tests - no need to do it twice 
     122        return; 
     123    } 
     124 
    112125    if ( $this->{useSeleniumError} ) { 
    113         print STDERR 
    114           "Cannot run Selenium-based tests: $this->{useSeleniumError}"; 
     126 
     127        # Message is already reported from list_tests - no need to do it twice 
    115128        return; 
    116129    } 
Note: See TracChangeset for help on using the changeset viewer.