Changeset 1272 for branches

Show
Ignore:
Timestamp:
02/13/06 07:05:26 (3 years ago)
Author:
sdcosta
Message:

Link the tests to their xml files.

Location:
branches/magpie-pirate-tests
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/magpie-pirate-tests/README

    r1269 r1272  
    88The Magpie unit test files will be stored in  
    99http://svn.gregarius.net/svn/branches/magpie-pirate-tests 
    10 Please download that branch into this directory to and point your web browser to runtests.php 
     10Please download that branch into this directory to and point  
     11your web browser to runTests.php 
    1112 
    1213--Sameer 
  • branches/magpie-pirate-tests/runTests.php

    r1271 r1272  
    1919require_once('rss_unitTest.inc'); 
    2020     
    21 $fetchTestURL = dirname($_SERVER['SCRIPT_URI']) . "/" . "fetchTest.php" ; 
     21$thisScriptBaseUrl = dirname($_SERVER['SCRIPT_URI']) . "/" ; 
     22$fetchTestUrl = $thisScriptBaseUrl . "fetchTest.php" ; 
    2223 
    2324$tests = array(); 
     
    3132    $_magpie_unitTest = new RSSUnitTest ($test); 
    3233    echo "<tr>\n"; 
    33     echo "<td>" . $test . "</td>\n"  
    34         ."<td>" . htmlspecialchars($_magpie_unitTest->getDescription()) . "</td>\n"; 
     34    echo "<td>\n"  
     35        ."<a href=\""  . $thisScriptBaseUrl . "TestCases/" . $test  
     36        ."\">" 
     37        .$test  
     38        ."</a>\n</td>\n"  
     39        ."<td>"   
     40        . htmlspecialchars($_magpie_unitTest->getDescription())  
     41        ."</td>\n"; 
    3542 
    36     $rss = fetch_rss($fetchTestURL . "?testfile=" . $test); 
     43    $rss = fetch_rss($fetchTestUrl . "?testfile=" . $test); 
    3744    echo "<td>\n";  
    3845    if (assert($_magpie_unitTest->getExpect())){