./python/01_python_minimal/is_prime.pyof the examples repository.
is_primesoftware using the Touca SDK for Python.
13as a sample input:
testcaseparameter to our test workflow. We convert this
testcaseto a number and pass it to our code under test. We capture the actual value returned by our software as a Touca test result. This value is stored in its original data type, in a binary file
touca.check. But unlike integration tests, we are not bound to the output of our workflow. We can capture any number of data points and from anywhere within our code. This is specially useful if our workflow has multiple stages. We can capture the output of each stage without publicly exposing its API. If the behavior of that stage changes in a future version of our code, we can leverage the captured output to find the root cause more easily.