Skip to main content
Answer

When to use tsf_send_assertion_message 1

  • May 20, 2020
  • 2 replies
  • 126 views

Forum|alt.badge.img+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

Best answer by Anne Buit

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:

 

This topic has been closed for replies.

2 replies

Anne Buit
Community Manager
Forum|alt.badge.img+5
  • Community Manager
  • Answer
  • May 20, 2020

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:

 


Forum|alt.badge.img+15
  • Author
  • Superhero
  • May 20, 2020

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 :).