hhvm / hacktest

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

Add much more verbose output #77

Closed fredemmott closed 5 years ago

fredemmott commented 5 years ago

Example:

HHVM\UserDocumentation\Tests\APINavDataTest> starting...
  ::testNamespacedDefinitionName> starting...
PASS
  ::testNamespacedDefinitionName> ...complete.
  ::testNamespacedDefinitionURL> starting...
PASS
  ::testNamespacedDefinitionURL> ...complete.
HHVM\UserDocumentation\Tests\APINavDataTest> ...complete.
HHVM\UserDocumentation\Tests\APIPagesTest> starting...
  ::testAPIPage> calling data providers...
  ::testAPIPage[1]> starting...
PASS
  ::testAPIPage[1]> ...complete.
  ::testAPIPage[2]> starting...
PASS
  ::testAPIPage[2]> ...complete.
  ::testAPIPage[3]> starting...
PASS
fredemmott commented 5 years ago

As as side note, implementing this made it clear there's not currently any parralelism - even async-level. This should be addressed for a hopefully significant speedup.

fredemmott commented 5 years ago

This could also be used as the basis for a JSON event stream for fancy IDE-ness. cc @pranayagarwal