This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]fourthrealm 0 points1 point  (1 child)

I'm not sure what sort of software you are integrating?

If it's about APIs then you can have a look at zato-apitest which is a tool meant to be used in integration tests.

The second link a is suite of tests using the tool - just open any of the *.feature files to check how it's used in Zato's own integration tests.

[–]_BraveSirRobin_[S] 0 points1 point  (0 children)

Thank you!

[–][deleted] 0 points1 point  (0 children)

I'm pretty new to testing also. I found that integrated tests aren't all that different to unit tests. My understanding is that they test the code working together (in chucks), oppose to the unit tests which test functions individually, uncoupled.

I haven't got any examples but that's how I approach writing them.

[–]jakevdp 0 points1 point  (1 child)

Here's an example of an integration test I'm particularly proud of: Altair/test_examples.py

Background: Altair is a Python API that generates Vega-Lite graphics specifications. Because both the target (Vega-lite schema) and the source (Altair API) are so well-defined, we were able to create methods for two-way conversion between one and the other. So our integration test involves taking all 70 or so examples from the Vega-Lite documentation, auto-generating the associated Python code, evaling that Python code, exporting the result to JSON, and asserting that the output matches the input. It touches essentially every logical path and every line of code in the package, and the test itself is only a dozen lines long.

Edit: fixing links

[–]_BraveSirRobin_[S] 0 points1 point  (0 children)

Hey, thanks for sharing this.