lunarmodules / busted

Elegant Lua unit testing.
https://lunarmodules.github.io/busted/
MIT License
1.39k stars 184 forks source link

A strange circle will be output after the test run is over #649

Closed ffbh123456 closed 3 years ago

ffbh123456 commented 3 years ago

I wrote a simple unit test. After the test runs, it will output a strange green circle without any other information. I think that every time a unit test is run over, output the name of the unit test and the result of the operation (success, failure, error, pending) would be better image

ffbh123456 commented 3 years ago

Now I know, a green circle represents a successful unit test block, but why not output the name of the unit test block, one line with a green circle and the name of unit test

alerque commented 3 years ago

@ZhouJiaZhi Many projects have thousands of test units. If we output a name for each you wouldn't be able to to see an overview in one screen full.

There are however several different output options baked in including ones to be more machine readable (i.e. TAP or JSON), ones to be more pretty (such as the default), more plain, more verbose, etc. You can choose the output handler you want to use or even write one of your own.

ffbh123456 commented 3 years ago

Thank you, I think 'TAP' is what I need