Skip to main content

Module testscript

Module testscript 

Source

Re-exportsΒ§

use crate::cli::state::CliState; πŸ”’
use clap::Subcommand; πŸ”’
use haste_fhir_client::http::HeaderMap; πŸ”’
use haste_fhir_client::http::HttpRequestHeaders; πŸ”’
use haste_fhir_client::http::WithRequestHeaders; πŸ”’
use haste_fhir_model::r4::generated::resources::Bundle; πŸ”’
use haste_fhir_model::r4::generated::resources::BundleEntry; πŸ”’
use haste_fhir_model::r4::generated::resources::BundleEntryRequest; πŸ”’
use haste_fhir_model::r4::generated::resources::Resource; πŸ”’
use haste_fhir_model::r4::generated::resources::TestReport; πŸ”’
use haste_fhir_model::r4::generated::resources::TestScript; πŸ”’
use haste_fhir_model::r4::generated::terminology::BundleType; πŸ”’
use haste_fhir_model::r4::generated::terminology::HttpVerb; πŸ”’
use haste_fhir_model::r4::generated::terminology::IssueType; πŸ”’
use haste_fhir_model::r4::generated::terminology::ReportResultCodes; πŸ”’
use haste_fhir_model::r4::generated::types::Extension; πŸ”’
use haste_fhir_model::r4::generated::types::ExtensionValueTypeChoice; πŸ”’
use haste_fhir_model::r4::generated::types::FHIRBoolean; πŸ”’
use haste_fhir_model::r4::generated::types::FHIRUri; πŸ”’
use haste_fhir_operation_error::OperationOutcomeError; πŸ”’
use haste_testscript_runner::TestRunnerOptions; πŸ”’
use std::path::Path; πŸ”’
use std::sync::Arc; πŸ”’
use tokio::sync::Mutex; πŸ”’
use tokio::task::JoinSet; πŸ”’
use tracing::error; πŸ”’
use tracing::info; πŸ”’
use tracing::warn; πŸ”’

StructsΒ§

TestScriptContext πŸ”’
Per-operation client context for a TestScript run.

EnumsΒ§

TestScriptCommands πŸ”’
Run FHIR TestScript resources against the active profile’s server.

ConstantsΒ§

EXPECTED_FAILURE_URL πŸ”’
Marks a TestReport whose failure is known (--allow-failure). It stays fail, so the result is truthful, but readers such as the website’s coverage page can show its failures as expected rather than as errors.

FunctionsΒ§

load_testscript_files πŸ”’
The TestScripts in a file (a TestScript or a Bundle of them). A file that can’t be read or parsed is an error, so a broken script fails the run instead of silently not running.
mark_expected_failure πŸ”’
run πŸ”’
Runs the testscript command group.