/[escript]/trunk/escriptcore/py_src/testing.py
ViewVC logotype

Diff of /trunk/escriptcore/py_src/testing.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 5574 by jfenwick, Fri Feb 6 05:31:37 2015 UTC revision 5575 by sshaw, Wed Apr 1 03:17:22 2015 UTC
# Line 27  allowing access to list all skipped test Line 27  allowing access to list all skipped test
27    
28  Examples:  Examples:
29    
30    Running all test classes  Running all test classes::
31      ```  
32      import your_test_module_or_file as tests      import your_test_module_or_file as tests
33      tests.run_tests("your_test_module_or_file")      tests.run_tests("your_test_module_or_file")
     ```  
34    
35    Running specific test classes  Running specific test classes::
36      ```  
37      import your_test_module_or_file as tests      import your_test_module_or_file as tests
38      tests.run_tests("your_test_module_or_file", [tests.Test_classA,      tests.run_tests("your_test_module_or_file", [tests.Test_classA, tests.Test_classB])
39              tests.Test_classB])  
40      ```  Running a specific test within a class::
41        
   Running a specific test within a class  
     ```  
42      import your_test_module_or_file as tests      import your_test_module_or_file as tests
43      tests.run_single_test(tests.Test_classname("test_functionname"))      tests.run_single_test(tests.Test_classname("test_functionname"))
     ```  
44    
45    Printing the list of skipped tests  Printing the list of skipped tests::
46      ```  
47      results = tests.run_tests("name")      results = tests.run_tests("name")
48      for skipped_test in results.skipped:      for skipped_test in results.skipped:
49          print(skipped_test)          print(skipped_test)
     ```  
50    
51  """  """
52    

Legend:
Removed from v.5574  
changed lines
  Added in v.5575

  ViewVC Help
Powered by ViewVC 1.1.26