Changeset 321


Ignore:
Timestamp:
Jun 6, 2006, 11:13:39 AM (13 years ago)
Author:
nick
Message:

Correctly calculate (and skip) the number of tests when backends aren't configured

Location:
wiki-toolkit/trunk/t
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • wiki-toolkit/trunk/t/297_feed_rss_recentchanges.t

    r312 r321  
    44use URI::Escape;
    55
     6# Note - update the count in the skip block to match the number here
     7#        we would put the number in a variable, but that doesn't seem to work
    68use Test::More tests =>
    79  (3 + 18 * $Wiki::Toolkit::TestConfig::Utilities::num_stores);
     
    2224while ( ($store_name, $store) = each %stores ) {
    2325  SKIP: {
    24       skip "$store_name storage backend not configured for testing", 17
     26      skip "$store_name storage backend not configured for testing", 18
    2527          unless $store;
    2628
  • wiki-toolkit/trunk/t/298_feed_rss_node_all_versions.t

    r316 r321  
    44use URI::Escape;
    55
     6# Note - update the count in the skip block to match the number here
     7#        we would put the number in a variable, but that doesn't seem to work
    68use Test::More tests =>
    79  (3 + 14 * $Wiki::Toolkit::TestConfig::Utilities::num_stores);
     
    2224while ( ($store_name, $store) = each %stores ) {
    2325  SKIP: {
    24       skip "$store_name storage backend not configured for testing", 17
     26      skip "$store_name storage backend not configured for testing", 14
    2527          unless $store;
    2628
  • wiki-toolkit/trunk/t/302_feed_atom_recentchanges.t

    r312 r321  
    44use URI::Escape;
    55
     6# Note - update the count in the skip block to match the number here
     7#        we would put the number in a variable, but that doesn't seem to work
    68use Test::More tests =>
    79  (3 + 12 * $Wiki::Toolkit::TestConfig::Utilities::num_stores);
     
    2224while ( ($store_name, $store) = each %stores ) {
    2325  SKIP: {
    24       skip "$store_name storage backend not configured for testing", 11
     26      skip "$store_name storage backend not configured for testing", 12
    2527          unless $store;
    2628
  • wiki-toolkit/trunk/t/303_feed_atom_node_all_versions.t

    r310 r321  
    44use URI::Escape;
    55
     6# Note - update the count in the skip block to match the number here
     7#        we would put the number in a variable, but that doesn't seem to work
    68use Test::More tests =>
    79  (3 + 14 * $Wiki::Toolkit::TestConfig::Utilities::num_stores);
     
    2224while ( ($store_name, $store) = each %stores ) {
    2325  SKIP: {
    24       skip "$store_name storage backend not configured for testing", 11
     26      skip "$store_name storage backend not configured for testing", 14
    2527          unless $store;
    2628
Note: See TracChangeset for help on using the changeset viewer.