Package org.fhirfrog.frog.ant
Class FhirTestTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.fhirfrog.frog.ant.FhirTestTask
- All Implemented Interfaces:
Cloneable
public class FhirTestTask
extends org.apache.tools.ant.Task
Ant task for executing FHIR TestScripts and TestPlans.
Server resolution: specify either serverUrl (direct URL, backward compatible)
or serverName (resolved via BackendRegistry from
~/.fhir-frog/backends.yaml and environment variables). If both are specified,
serverUrl takes precedence.
-
Field Summary
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapperFields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()voidsetFixturesPath(String fixturesPath) voidsetIgPackage(String igPackage) "<id>#<version>"to validatevalidateProfileIdassertions against - only honoured insetTestPackage(java.lang.String)mode (matchingfhir-frog-cli's--ig-package); the existingsetTestScript(java.lang.String)/setTestPlan(java.lang.String)modes don't support this yet, a pre-existing gap this task doesn't otherwise address.voidsetJunitXmlDir(String junitXmlDir) voidsetReportDir(String reportDir) voidsetReportFormat(String reportFormat) voidsetReportServer(String reportServer) voidsetServerName(String serverName) Backend name to resolve viaBackendRegistry.voidsetServerUrl(String serverUrl) voidsetTerminologyServer(String terminologyServer) External FHIR terminology server URL - samesetTestPackage(java.lang.String)-only scope assetIgPackage(java.lang.String)above.voidsetTestPackage(String testPackage) "<id>#<version>"of a Test IG package (e.g.voidsetTestPlan(String testPlan) voidsetTestScript(String testScript) Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
Constructor Details
-
FhirTestTask
public FhirTestTask()
-
-
Method Details
-
setTestScript
-
setTestPlan
-
setTestPackage
"<id>#<version>"of a Test IG package (e.g.fhirfrog.au-core-tests#0.1.0), resolved from~/.fhir/packagesand executed in full - mutually exclusive withsetTestScript(java.lang.String)/setTestPlan(java.lang.String).setFixturesPath(java.lang.String)is ignored in this mode; the resolved package's ownfixtures/directory is always used instead. -
setIgPackage
"<id>#<version>"to validatevalidateProfileIdassertions against - only honoured insetTestPackage(java.lang.String)mode (matchingfhir-frog-cli's--ig-package); the existingsetTestScript(java.lang.String)/setTestPlan(java.lang.String)modes don't support this yet, a pre-existing gap this task doesn't otherwise address. -
setTerminologyServer
External FHIR terminology server URL - samesetTestPackage(java.lang.String)-only scope assetIgPackage(java.lang.String)above. -
setServerUrl
-
setServerName
Backend name to resolve viaBackendRegistry. Mutually exclusive withserverUrl— if both are set,serverUrltakes precedence. -
setFixturesPath
-
setReportDir
-
setReportServer
-
setReportFormat
-
setJunitXmlDir
-
execute
public void execute() throws org.apache.tools.ant.BuildException- Overrides:
executein classorg.apache.tools.ant.Task- Throws:
org.apache.tools.ant.BuildException
-