Create, execute and share
Test FHIR® APIs using a simple but powerful DSL
Inferno Framework provides a flexible testing DSL that is tailored to
the typical needs of conformance testing systems. You write the tests,
and Inferno will provide web, command line, and JSON APIs for you.
test do
title 'Server returns requested Patient resource from the Patient read interaction'
input :patient_id
run do
fhir_read(:patient, patient_id, name: :patient)
assert_response_status(200)
assert_resource_type(:patient)
assert resource.id == patient_id,
"Requested resource with id #{patient_id}, received resource with id #{resource.id}"
end
end
A Web UI, Out of the Box
Inferno ships with a web based user interface suitable for local use or deploying as a shared, central service.
Create, Share, Extend
Inferno Test Kits can be easily shared and extended so you can focus on your unique tests.
require 'smart_app_launch_test_kit'
module MyTestKit
class MyTestSuite < Inferno::TestSuite
group from: :smart_discovery
end
end