Writing Tests in Inferno
Test Suite Structure
There are three classes used to organize tests in Inferno:
TestSuite
- An entire suite of tests. A suite can contain manyTestGroup
s.TestGroup
- ATestGroup
can contain manyTestGroup
s orTest
s.Test
- An individual test. A test contains arun
block which defines what happens when the test is run.
A simple US Core test suite might look like this:
- US Core (
TestSuite
)- US Core Patient Group (
TestGroup
)- Server supports Patient Read Interaction (
Test
) - Server supports Patient Search by id (
Test
)
- Server supports Patient Read Interaction (
- US Core Condition Group (
TestGroup
)- Server supports Condition Read Interaction (
Test
) - Server supports Condition Search by Patient (
Test
)
- Server supports Condition Read Interaction (
- US Core Patient Group (