Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

difference between failed and broken test

I want to simply know the basic difference between "failed" test and "broken" test in nunit.

like image 719
user123 Avatar asked Oct 27 '25 06:10

user123


2 Answers

I don't know about nUnit specifically but in general testing terminology, the two are well defined.

A failing test is one which is well written and which has determined that the component being tested is broken. This usually happens when an assertion fails in the test case.

A broken test is a badly written test that fails because of an error in itself rather than in the module being tested. This can, for example, be a syntax error in the test.

like image 52
Noufal Ibrahim Avatar answered Oct 29 '25 22:10

Noufal Ibrahim


A failed test is a test which violated the asserts. A broken test could not be run because it's broken.

like image 22
Zebi Avatar answered Oct 29 '25 21:10

Zebi