Commits

John Paulett  committed fde9a76

Add support for JUnit style output

  • Participants
  • Parent commits b03d411

Comments (0)

Files changed (3)

 docs/.build
 build/
 dist/
+target/
 
 @task
 def test():
+    """Run the test suite."""
     import run_tests
     run_tests.main()
+    
+@task
+def xmltest():
+    """Run the test suite and output JUnit format results."""
+    import run_tests
+    run_tests.main(argv=['--with-nosexunit'])
+    
 
 pass

File tests/run_tests.py

     insert_path(path.join(path.dirname(path.abspath(__file__)), path.pardir, 'src'))
     
     if argv != None:
-        nose_args = argv + NOSE_ARGS
+        nose_args = NOSE_ARGS + argv
     else:
         nose_args = NOSE_ARGS
     print 'Running nose with arguments:', ' '.join(nose_args[1:])
     nose.main(argv=nose_args)
 
 if __name__ == '__main__':
-    main(sys.argv)
+    main(sys.argv[1:])