Skip to content

Corrections to make unit tests pass + add workflow to run unit tests#42

Merged
kennethmyhra merged 5 commits into
masterfrom
correct-test-stuite
Apr 10, 2026
Merged

Corrections to make unit tests pass + add workflow to run unit tests#42
kennethmyhra merged 5 commits into
masterfrom
correct-test-stuite

Conversation

@kennethmyhra
Copy link
Copy Markdown
Member

No description provided.

@kennethmyhra kennethmyhra force-pushed the correct-test-stuite branch 4 times, most recently from ed594b2 to f60e176 Compare April 10, 2026 08:22
Guard against nil client in TestScriptEngine#initialize and
BaseTest#version_namespace when calling fhir_version, which occurs when
TestScriptEngine is instantiated without a client (e.g. list_all).
ignore_multiple_types is an Array, so concatenating a String raises
TypeError: no implicit conversion of String into Array.
Use an Array literal instead.
When an optional (min=0) CodeableConcept field has a required binding to
an external ValueSet (e.g. LOINC, SNOMED) and no valid_codes are
available in the model metadata, the generator produced a random code
that always fails validation. Since these fields are optional (min=0),
skip them to generate valid resources.
The spec example testscripts are intentionally not loaded in
CI/production, so hardcoding 'TS-testscript-example' always fails. Use
tests.keys.first to reference whatever testscript is actually loaded.
Runs bundle exec rake test_unit on every push to master and on
every pull request, without requiring a FHIR server.
@kennethmyhra kennethmyhra marked this pull request as ready for review April 10, 2026 08:27
@kennethmyhra kennethmyhra changed the title Correct test suite Corrections to make unit tests pass + add workflow to run unit tests Apr 10, 2026
@kennethmyhra kennethmyhra merged commit 98a3ae4 into master Apr 10, 2026
3 checks passed
@kennethmyhra kennethmyhra deleted the correct-test-stuite branch April 10, 2026 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant