~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to test/test_framework/tests.py

  • Committer: dilshan_a
  • Date: 2008-01-24 04:52:56 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:283
Fixed a bug where variables were persistent across test cases.

Added initial minutes/report/documentation on tutorials.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
 
import sys
3
 
sys.path.append('../../www/apps/tutorial/test/')
4
 
 
5
2
from parse_tute import *
6
3
 
7
4
def print_results((name, results)):
13
10
            print "  " + test_result
14
11
    print 
15
12
 
16
 
for i in range(1, len(sys.argv)):
17
 
    basename = sys.argv[i]
18
 
    xmlfile = basename + '_text.xml'
19
 
    pyfile = basename + '.py'
20
 
 
21
 
    print "Testing:", basename
22
 
    problem_suite = parse_tutorial_file(xmlfile)
23
 
    print_results(problem_suite.run_tests(pyfile))
 
13
problem_suite = parse_tutorial_file('hello_text.xml')
 
14
print_results(problem_suite.run_tests("hello.py"))
 
15
 
 
16
problem_suite = parse_tutorial_file('all_input_text.xml')
 
17
print_results(problem_suite.run_tests("all_input.py"))
 
18
 
 
19
problem_suite = parse_tutorial_file('fib_text.xml')
 
20
print_results(problem_suite.run_tests("fib.py"))