Skip to main content
Solved

When to use tsf_send_assertion_message 1


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:

 

View original

Anne Buit
Community Manager
Forum|alt.badge.img+5
  • Community Manager
  • 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
  • Superhero
  • May 20, 2020
Anne Buit wrote:

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings