Solved

When to use tsf_send_assertion_message 1


Userlevel 3
Badge +9

I was wondering, when and why would you call tsf_send_assertion_msg 1? Because when you omit it, nothing happens, which is ok I think. When using an assertion query I'd probably only would use the 0 variant, to indicate an error.

https://docs.thinkwisesoftware.com/docs/sf/unit_test.html#docsNav

icon

Best answer by Anne Buit 20 May 2020, 14:56

Hi René,

Good point. Positive assertions are not used to determine the success of the unit test.

The positive assertions can be used to document successful assertions. For instance, when multiple checks are performed:

 

View original

2 replies

Userlevel 6
Badge +2

Hi René,

Good point. Positive assertions are not used to determine the success of the unit test.

The positive assertions can be used to document successful assertions. For instance, when multiple checks are performed:

 

Userlevel 3
Badge +9

Hi René,

Good point. Positive assertions are not used to determine the success of the unit test.

The positive assertions can be used to document successful assertions. For instance, when multiple checks are performed:

 

Now I see, the tab page is only visible when the're actually assertion (couldn't find it)

This makes sense, thanks :).

Reply