feat(testing): Add integration test framework#336
Open
ljapptest-art wants to merge 1 commit intoillbnm:masterfrom
Open
feat(testing): Add integration test framework#336ljapptest-art wants to merge 1 commit intoillbnm:masterfrom
ljapptest-art wants to merge 1 commit intoillbnm:masterfrom
Conversation
- Test runner: tests/run-tests.sh - Supports --stack <name> and --all - JSON output for CI - Colored terminal output - Assertion library: tests/lib/assert.sh - Container assertions (running, healthy) - HTTP assertions (200, redirect, response) - JSON assertions (value, key exists, no errors) - File assertions (exists, contains) - Compose assertions (no :latest, healthcheck) - Utility functions: - tests/lib/docker.sh: Docker helpers - tests/lib/report.sh: Test reporting - Stack tests (10 stacks): - base, databases, notifications, ai - home-automation, productivity, media - storage, network, sso Closes illbnm#14
Author
✅ Test ResultsValidation
Assertion Library Coverage
Stack Tests
Files |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements Issue #14 - Integration Testing.
Test Framework
Test Runner
tests/run-tests.sh --stack <name>- Run specific stack teststests/run-tests.sh --all --json- Run all tests with JSON outputAssertion Library (tests/lib/assert.sh)
assert_eq,assert_not_empty,assert_exit_codeassert_container_running,assert_container_healthyassert_http_200,assert_http_response,assert_http_redirectassert_json_value,assert_json_key_exists,assert_no_errorsassert_file_exists,assert_file_containsassert_no_latest_images,assert_all_services_have_healthcheckStack Tests (10 stacks)
Files
bash -nsyntax checkCloses #14