hhvm / hacktest

A unit testing framework for Hack
MIT License
29 stars 13 forks source link

Non-verbose output should search for filename, not class name #48

Closed fredemmott closed 6 years ago

fredemmott commented 6 years ago

For example:

1) Facebook\FBExpect\ExpectObjTest::testDifferingStringOutput
Haystack must be an array, traversable or string

/Users/fredemmott/code/fbexpect/vendor/hhvm/hacktest/src/Framework/HackTestCase.php(84): Facebook\FBExpect\ExpectObjTest->testDifferingStringOutput()

This is not useful; it's reporting this line as it's the first that includes the full class name - which includes the namespace.

This line is much more useful:

/Users/fredemmott/code/fbexpect/tests/ExpectObjTest.php(389): Facebook\FBExpect\ExpectObj->toContain()