title: R testthat not reporting failures or errors
body: <p>I am finding some weird results using <code>testthat</code>. When running <code>test_file</code>, individual <code>test_that</code> calls are discovered but there is no output to the console other than the name of the context and the returned <code>data.frame</code> does not have the expected results. I suspect I am doing something really dumb but have tried lots of alternatives and get the same outcome.</p>
  
  <p>Here is my <code>tests.r</code> file:</p>
  
  <pre><code>context("The context")
  
  test_that('should pass',function(){
      expect_equal(42,42)
  })
  
  test_that('should fail',function(){
      expect_equal(43,42)
  })
  
  test_that('should error',function(){
      stop()
  })
  </code></pre>
  
  <p>I run <code>test_file</code> on it:</p>
  
  <pre><code>&gt; require(testthat)
  Loading required package: testthat
  &gt; test_file('tests.r')
  The context : 
  
  &gt; results &lt;- test_file('tests.r')
  The context : 
  
  &gt; results
       file     context         test nb failed error user system  real
  1 tests.r The context  should pass  0      0 FALSE    0      0 0.002
  2 tests.r The context  should fail  0      0 FALSE    0      0 0.001
  3 tests.r The context should error  0      0 FALSE    0      0 0.001
  </code></pre>
  
  <p>As you can see, no console output and in the results <code>data.frame</code> instead of having one failed test and one with an error it looks as though everything has passed.</p>
  
  <p>When I run the function bodies directly in the console I get what is expected:</p>
  
  <pre><code>&gt; expect_equal(42,42)
  &gt; expect_equal(43,42)
  Error: 43 not equal to 42
  Mean relative difference: 0.02380952
  &gt; stop()
  Error: 
  </code></pre>
  
  <p>This is what I am running:</p>
  
  <pre><code>&gt; sessionInfo()
  R version 3.1.2 (2014-10-31)
  Platform: x86_64-pc-linux-gnu (64-bit)
  
  locale:
   [1] LC_CTYPE=en_NZ.UTF-8       LC_NUMERIC=C              
   [3] LC_TIME=en_NZ.UTF-8        LC_COLLATE=en_NZ.UTF-8    
   [5] LC_MONETARY=en_NZ.UTF-8    LC_MESSAGES=en_NZ.UTF-8   
   [7] LC_PAPER=en_NZ.UTF-8       LC_NAME=C                 
   [9] LC_ADDRESS=C               LC_TELEPHONE=C            
  [11] LC_MEASUREMENT=en_NZ.UTF-8 LC_IDENTIFICATION=C       
  
  attached base packages:
  [1] stats     graphics  grDevices utils     datasets  methods   base     
  
  other attached packages:
  [1] testthat_0.9.1
  </code></pre>
  
  <p>Suspecting that I may have a broken install or something I tried the same tests on Ubuntu Trusty/R 3.12 and Windows 7/R 3.11 and get the same results. I really must be doing something dumb!</p>
  
  <p>When I write analogous tests using <code>Runit</code>:</p>
  
  <pre><code>test.should_pass &lt;- function(){
      checkEquals(42,42)
  }
  
  test.should_fail &lt;- function(){
      checkEquals(43,42)
  }
  
  test.should_error &lt;- function(){
      stop()
  }
  </code></pre>
  
  <p>I get the expected output and results:</p>
  
  <pre><code>&gt; results &lt;- runTestFile('tests.r')
  
  
  Executing test function test.should_error  ... Timing stopped at: 0 0 0 
  Error in func() : 
      done successfully.
  
  
  
  Executing test function test.should_fail  ... Timing stopped at: 0 0 0.001 
  Error in checkEquals(43, 42) : Mean relative difference: 0.02325581
  done successfully.
  
  
  
  Executing test function test.should_pass  ...  done successfully.
  
  &gt; results
  Number of test functions: 3 
  Number of errors: 1 
  Number of failures: 1 
  </code></pre>