Files
tinygo/testdata
Ayke van Laethem 04f520040e testing: add support for the -test.v flag
This flag is passed automatically with the (new) -v flag for TinyGo. For
example, this prints all the test outputs:

    $ tinygo test -v crypto/md5
    === RUN   TestGolden
    --- PASS: TestGolden
    === RUN   TestGoldenMarshal
    --- PASS: TestGoldenMarshal
    === RUN   TestLarge
    --- PASS: TestLarge
    === RUN   TestBlockGeneric
    --- PASS: TestBlockGeneric
    === RUN   TestLargeHashes
    --- PASS: TestLargeHashes
    PASS
    ok  	crypto/md5	0.002s

This prints just a summary:

    $ tinygo test crypto/md5
    PASS
    ok  	crypto/md5	0.002s

(The superfluous 'PASS' message may be removed in the future).

This is especially useful when testing a large number of packages:

    $ tinygo test crypto/md5 crypto/sha1 crypto/sha256 crypto/sha512
    PASS
    ok  	crypto/md5	0.002s
    PASS
    ok  	crypto/sha1	0.043s
    PASS
    ok  	crypto/sha256	0.002s
    PASS
    ok  	crypto/sha512	0.003s

At the moment, the -test.v flag is not supplied to binaries running in
emulation. I intend to fix this after
https://github.com/tinygo-org/tinygo/pull/2038 lands by refactoring
runPackageTest, Run, and runTestWithConfig in the main package which all
do something similar.
2021-08-13 08:53:40 +02:00
..
2021-05-21 17:54:13 +02:00
2019-09-20 10:35:49 +02:00
2019-09-20 10:35:49 +02:00
2021-04-09 18:33:48 +02:00
2021-04-09 18:33:48 +02:00
2020-01-27 19:01:55 +01:00
2021-05-26 20:21:08 +02:00
2021-04-09 18:33:48 +02:00
2021-04-09 18:33:48 +02:00
2021-04-21 07:37:22 +02:00
2021-04-21 07:37:22 +02:00
2019-02-05 19:37:21 +01:00
2019-02-05 19:37:21 +01:00
2020-10-02 11:26:22 +02:00
2020-10-02 11:26:22 +02:00
2021-05-22 21:41:06 +02:00
2021-04-12 14:49:26 +02:00
2018-10-20 17:22:51 +02:00
2020-10-23 21:37:35 +02:00
2020-10-23 21:37:35 +02:00
2019-10-13 23:07:47 +02:00
2019-10-13 23:07:47 +02:00
2020-05-12 01:17:27 +02:00