-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sub test execution and output updates #79
Conversation
move display to write_reports add testscript.name to testreport reference
remove TestScript variable extension add subtest config file
* add fhirpath_service * Initial commit * Add testscript for internal fhirpath testing * Add external validator test case * Add mCODE testscripts * Minor change * Handle only equals operator * Handle only String value based on the FHIR spec * check for multiple values in assertion logic * Update README.md Co-authored-by: Jack Fraser <[email protected]> Co-authored-by: Jaehoon Lee <[email protected]> Co-authored-by: Jaehoon Lee <[email protected]> Co-authored-by: Karl Naden <[email protected]>
move display to write_reports add testscript.name to testreport reference
remove TestScript variable extension add subtest config file
…t-engine into SubTestExecution
|
@@ -103,7 +107,7 @@ def make_runnables | |||
end | |||
|
|||
def run(*args) | |||
print_out messages(:begin_runnable_execution, script.id) | |||
print_out messages(:begin_runnable_execution, script.name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with that use of name instead of is good idea.
self.get_fixture_block = block | ||
self.options = options | ||
self.client_util = FHIR::Client.new('') | ||
self.available_profiles = available_profiles | ||
self.engine = engine |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think by having engine object part of runnable initialization has pros and cons and we may make it a bit clearer or simpler as to what information the engine handles vs the runnable handles. But that is out of the scope in the last hour of this project. For now I'm okay to this change if you'd prefer that way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed - this was a quick solution that could be handled better in another way. Main need is to pass the report back to the engine, which could be done in another way.
@@ -77,16 +79,16 @@ def preprocess | |||
|
|||
def setup | |||
return info(:no_setup) unless script.setup | |||
handle_actions(script.setup.action, true) | |||
handle_actions(script.setup.action, :setup) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a good way to detail the configuration of fail on error in different phases of testing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No concerns and approved
Summary
New behavior
Output stuff
Subtest stuff
Code changes
Generally minor tweaks to support cloning of runnables such that they can be executed within the context of another test
Testing guidance
bundle exec bin/testscript_engine execute --config config-multipleMCODE.yml
expected results: not all will succeed
bundle exec bin/testscript_engine execute --config config-mCODESubtest.yml
expected results (failures expected with internal FHIR path, should succeed with external FHIRPath support)
bundle exec ruby bin/testscript_engine execute --config spec/examples/subtest/config-subtest.yml
expected results (these failures are expected):