title: Get the number of passed and failed tests with their name from command line
body: <p>I am writing Python script which will run <code>mvn test</code> on different folders, and I want to get number of passed test and failed tests and their names from script.</p>
  
  <p>Now I just have managed to run process and get it output</p>
  
  <pre><code>proc = subprocess.run(["mvn", "test", "-f", PROJ_PATH])
  print(proc.stdout)
  </code></pre>
  
  <p>output:</p>
  
  <pre><code>   Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
  
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD SUCCESS
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 1.715 s
  [INFO] Finished at: 2016-10-12T18:59:11+03:00
  [INFO] Final Memory: 10M/212M
  [INFO] ------------------------------------------------------------------------
  </code></pre>
  
  <p>I know that I can use regexp and try to parse output, but may be there are some more appropriate ways to incorporate with Maven from Python or Bash.</p>