Unittests and assert
Jacob Carlborg
doob at me.com
Thu Feb 28 05:03:51 PST 2013
On 2013-02-28 08:41, Jonathan M Davis wrote:
> D's unit test facilities are also designed so that they specifically print
> _nothing_ on success (and as a command-line tool, this is important), so
> printing out how many passed or failed will never work unless there are
> failures (which may or may not conflict with what you're looking for).
BTW, this is the output of Rspec using one of its format for a couple of
our tests:
admin/takeovers/index
takeover list
when takeovers exist
table header
should have text "Länk"
should have text "Slutar"
should have text "Börjar"
should have text "Land"
should have text "Aktiv"
contents
should have text "http://www.google.com"
Finished in 0.68571 seconds
6 examples, 0 failures
Randomized with seed 56161
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list