Ospec: expose messages for passing tests, in addition to failing tests (#2227)
* ospec: all results, failing and passing, include .message and .context Previously only failing tests had .message and .context. * Updated docs * Function was ugly * Ospec verbose passing tests: put changelog update in right place
This commit is contained in:
parent
0fd1bc9cae
commit
b5219920ab
4 changed files with 14 additions and 7 deletions
|
|
@ -89,6 +89,8 @@ o.spec("reporting", function() {
|
|||
o(results.length).equals(2)("Two results")
|
||||
|
||||
o("error" in results[0] && "pass" in results[0]).equals(true)("error and pass keys present in failing result")
|
||||
o("message" in results[0] && "context" in results[0]).equals(true)("message and context keys present in failing result")
|
||||
o("message" in results[1] && "context" in results[1]).equals(true)("message and context keys present in passing result")
|
||||
o(results[0].pass).equals(false)("Test meant to fail has failed")
|
||||
o(results[1].pass).equals(true)("Test meant to pass has passed")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue