Solved

When to use tsf_send_assertion_message 1

  • 20 May 2020
  • 2 replies
  • 110 views

Userlevel 5
Badge +15

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

View original

2 replies

Userlevel 7
Badge +5

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 5
Badge +15

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