title: How to easily find out which tests fail
body: <p>I test my code with <code>go test ./... -v -short</code>.</p>
  
  <p>Unfortunately, <code>-v</code> only prints out each test as it happens, but does not leave a summary of the results at the bottom like in Java. This means that if any test failed somewhere at the top, I have to scroll up and look for the word <code>FAIL</code> or search for it in a text editor.</p>
  
  <p>The <code>-failfast</code> flag isn't helping either because some of my tests still get printed after the first test failure for some reason.</p>
  
  <p>I don't really care if tests get run after the initial test failure. I just want to be able to easily tell if <strong><em>any</em></strong> test failed, preferably in just one place (e.g. a summary of how many tests passed or failed, or by seeing a flag if all tests passed or not).</p>
  
  <p>Is there a way to easily tell if there was a test failure because I don't want to accidentally continue coding if I still have test failures.</p>
  
  <p>I'm on Windows 10 64-bit.</p>
  
  <p><strong><em>UPDATE:</em></strong> Many thanks to @icza for the <code>findstr</code> tip. I later realized that I also wanted to see the error descriptions along with the test failures, but did not want to run <code>go test</code> twice. This is what I came up with for CMD (does not work on Powershell):</p>
  
  <pre><code>go test ./... -v -short &gt; test-results.txt &amp; findstr "FAIL _test" test-results.txt
  </code></pre>
  
  <p>Now <code>findstr</code> should report test failures as well as error descriptions. And if you want to see the full test results, simply open <code>test-results.txt</code>.</p>