Skip to content

Add integration tests to CI#294

Draft
mgaffigan wants to merge 11 commits intoOpenIntegrationEngine:mainfrom
mgaffigan:feat/smoketest
Draft

Add integration tests to CI#294
mgaffigan wants to merge 11 commits intoOpenIntegrationEngine:mainfrom
mgaffigan:feat/smoketest

Conversation

@mgaffigan
Copy link
Copy Markdown
Contributor

Note: because #101 has not yet merged, this shows larger than it is. #101 needs to merge first, then this one.

Modifies CI to primarily build within docker. Uses that newfound docker capability to run message processing tests on alpine and Ubuntu, with back-ends for derby, mariadb, postgres, sqlserver.

Adds new file-based-tests. Procedure to add a test is:

  1. Create a test folder (ci/tests/110-hl7-no-op)
  2. Add any channels needed (ci/tests/110-hl7-no-op/channels/01-hl7-no-op/channel.xml) by exporting from a running instance
  3. Add messages (ci/tests/110-hl7-no-op/channels/01-hl7-no-op/messages/01-adt-a01/source)
  4. Add assertions (ci/tests/110-hl7-no-op/channels/01-hl7-no-op/messages/01-adt-a01/source_response)

See ci/README.md for more details on what assertions are available. There is a python escape hatch for fancy things and non-channel-based-testing. Integration tests produce ant-style results at ci/test-results.

Run tests locally by calling pwsh ci/runtests.ps1. For "inner loop troubleshooting" it is often worthwhile to skip unit tests and to specify a particular configuration with

pwsh ci/runtests.ps1 -DisableUnitTests -Configuration alpine-temurin21-mysql

Responsive to #11 and #98

Adds docker build and configure-from-env script to configure OIE server
based on environment variables at container startup time.

Issue: OpenIntegrationEngine#40
Signed-off-by: Mitch Gaffigan <mitch.gaffigan@comcast.net>
Signed-off-by: Mitch Gaffigan <mitch.gaffigan@comcast.net>
Signed-off-by: Mitch Gaffigan <mitch.gaffigan@comcast.net>
Signed-off-by: Mitch Gaffigan <mitch.gaffigan@comcast.net>
Signed-off-by: Mitch Gaffigan <mitch.gaffigan@comcast.net>
Signed-off-by: Mitch Gaffigan <mitch.gaffigan@comcast.net>
Signed-off-by: Mitch Gaffigan <mitch.gaffigan@comcast.net>
Signed-off-by: Mitch Gaffigan <mitch.gaffigan@comcast.net>
Signed-off-by: Mitch Gaffigan <mitch.gaffigan@comcast.net>
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 12, 2026

Test Results

  111 files  ±0    214 suites  ±0   6m 45s ⏱️ + 1m 2s
  654 tests ±0    653 ✅  - 1  1 💤 +1  0 ❌ ±0 
1 308 runs  ±0  1 306 ✅  - 2  2 💤 +2  0 ❌ ±0 

Results for commit 00ed472. ± Comparison against base commit 5203b3a.

♻️ This comment has been updated with latest results.

Signed-off-by: Mitch Gaffigan <mitch.gaffigan@comcast.net>
Signed-off-by: Mitch Gaffigan <mitch.gaffigan@comcast.net>
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