zap icon indicating copy to clipboard operation
zap copied to clipboard

Report an error

Open thiagodp opened this issue 5 years ago • 1 comments

Fail and error may need to be reported differently. A fail usually occurs when an assertion is incorrect; an error occurs because of an exception is thrown and it is not catch, or because of a problem with the source code that will be only detected at run-time.

ZAP could represent the event error. This event would probably happen only when kind is test.

thiagodp avatar Jul 26 '18 21:07 thiagodp

Hmm... I do want to limit the number of possible completion events to two so that its always binary "these tests results should be considered as passed/failed"

I wouldn't be opposed to providing different reasons for negative cases though.

There could be other events that fire, there could be another field "reason" which is a enum of possible failure types. But whatever it is should be ignorable if all you care about is a yes or no answer to if tests passed

jamiebuilds avatar Jul 27 '18 07:07 jamiebuilds