zaptst / zap

A streamable structured interface for real time reporting of developer tools.
MIT License
120 stars 1 forks source link

How does ZAP deal with "skipped tests"? #4

Closed hansott closed 6 years ago

hansott commented 6 years ago

PHPUnit always you to skip certain tests depending on the used OS, available PHP extensions, ...

Docs: https://phpunit.readthedocs.io/en/7.1/incomplete-and-skipped-tests.html#skipping-tests

I know that tests like that are probably not a good idea and each test should always be able to run. It's a feature that's used though. I'm wondering whether these skipped tests should be supported by ZAP... What do you think?

mjarkk commented 6 years ago

A skipped test is also handy when you know a test will fail because of a change you want.
Because of that it might be handy to tell a user that tests are being skipped so they don't forget to fix those tests

Ava tells you in the output when tests are skipped: https://github.com/avajs/ava#skipping-tests
I'm not sure if other test frameworks do the same thing with skipped tests

Myabe add something like this

{
    "skipped": true
}
jamiebuilds commented 6 years ago

There's already a "skipped" event, does that work well enough?

hansott commented 6 years ago

Sorry @jamiebuilds, I must have missed that when reading the spec... I'm going to close this!

I'm going to try implementing a PHPUnit ZAP extension for fun. 😬