johnkary/phpunit-speedtrap

Can't get it to work ...

morganprecision opened this issue · 1 comments

Installed via Composer and added listener in phpunit.xml.dist, but no output is printed to console when tests are run. (I tried lowering the threshold to a ridiculously low number and also added a sleep(1) call in one of the tests.)

My phpunit.xml.dist file:

<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
  backupStaticAttributes="false"
  bootstrap="tests/bootstrap.php"
  colors="true"
  convertErrorsToExceptions="true"
  convertNoticesToExceptions="true"
  convertWarningsToExceptions="true"
  processIsolation="false"
  stopOnFailure="false"
  syntaxCheck="false">
  <testsuites>
    <testsuite name="My Test Suite">
      <directory>./tests/</directory>
    </testsuite>
  </testsuites>

  <logging>
    <log type="coverage-html" target="build/coverage" title="my-project"
      charset="UTF-8" yui="true" highlight="true"
      lowUpperBound="35" highLowerBound="70"/>
    <log type="coverage-clover" target="build/logs/clover.xml"/>
    <log type="junit" target="build/logs/junit.xml" logIncompleteSkipped="false"/>
  </logging>

  <filter>
    <whitelist addUncoveredFilesFromWhitelist="true">
      <directory suffix=".php">src</directory>
    </whitelist>
  </filter>

  <listeners>
    <listener class="JohnKary\PHPUnit\Listener\SpeedTrapListener"/>
    <listener class="Mockery\Adapter\Phpunit\TestListener"/>
  </listeners>
</phpunit>

My environment is Ubuntu 13.10 with PHP 5.5.3 and PHPUnit 3.7.37, if that helps.

Seems to be working now ... I restarted the system when I came in this morning, perhaps that's all it was. Thanks.