Created
          January 21, 2019 01:40 
        
      - 
      
- 
        Save rms1000watt/29460b91c1fa0d8608c53c100fa3940c to your computer and use it in GitHub Desktop. 
    Python Unit Tests Output junit
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import unittest | |
| class RyanTest(unittest.TestCase): | |
| def test_hello_world(self): | |
| print("hello world") | |
| def test_failure(self): | |
| self.assertEqual(1, 2) | |
| if __name__ == '__main__': | |
| unittest.main() | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/usr/bin/env bash | |
| coverage run --branch -m pytest --verbose --junitxml=test_results.xml -s test.py | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment