-
Notifications
You must be signed in to change notification settings - Fork 3
Feat/adding optional journal logging #90
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
Changes from all commits
fab331c
e341451
89852e3
51d8901
7421da5
7a58468
71e856a
68a0eb4
1bdf64d
b59cc27
739f154
e472347
be35c7d
677c7de
87f2399
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -40,9 +40,9 @@ Comprehensive guide to the bash-logger test suite, including how to run tests, w | |||||||||||||||||
|
|
||||||||||||||||||
| ## Overview | ||||||||||||||||||
|
|
||||||||||||||||||
| The bash-logger project includes a comprehensive test suite with 103 tests across 6 test | ||||||||||||||||||
| suites, validating all functionality of the logging module. The test framework is built | ||||||||||||||||||
| in pure Bash and designed to be: | ||||||||||||||||||
| The bash-logger project includes a comprehensive Bash-based test suite. To see the current | ||||||||||||||||||
| number of test suites and individual tests, run `bash tests/run_tests.sh` and check the | ||||||||||||||||||
| summary output. The test framework is built in pure Bash and designed to be: | ||||||||||||||||||
|
|
||||||||||||||||||
| * **Self-contained**: No external test frameworks required | ||||||||||||||||||
| * **CI-friendly**: Clear exit codes and non-interactive | ||||||||||||||||||
|
|
@@ -124,12 +124,29 @@ cd tests | |||||||||||||||||
|
|
||||||||||||||||||
| Available test suites: | ||||||||||||||||||
|
|
||||||||||||||||||
| * `test_ansi_injection` - ANSI escape sanitization and related security tests | ||||||||||||||||||
| * `test_concurrent_access` - Concurrency and parallel logging behavior | ||||||||||||||||||
| * `test_config` - Configuration file parsing and behavior | ||||||||||||||||||
| * `test_config_security` - Security hardening for configuration input | ||||||||||||||||||
| * `test_edge_cases` - Boundary and unusual input handling | ||||||||||||||||||
| * `test_environment_security` - Environment-based security checks | ||||||||||||||||||
| * `test_error_conditions` - Error handling and defensive behavior | ||||||||||||||||||
| * `test_format` - Message format templates and formatting behavior | ||||||||||||||||||
| * `test_fuzzing` - Fuzz-style robustness checks | ||||||||||||||||||
| * `test_initialization` - Logger initialization behavior | ||||||||||||||||||
| * `test_install` - Installation and setup scripts | ||||||||||||||||||
| * `test_journal_logging` - Journal-specific behavior and forced journal logging | ||||||||||||||||||
| * `test_junit_output` - JUnit XML report generation | ||||||||||||||||||
| * `test_log_levels` - Log level functionality | ||||||||||||||||||
| * `test_initialization` - Logger initialization | ||||||||||||||||||
| * `test_output` - Output routing and formatting | ||||||||||||||||||
| * `test_format` - Message format templates | ||||||||||||||||||
| * `test_config` - Configuration file parsing | ||||||||||||||||||
| * `test_mixed_sanitization_modes` - Combined sanitization mode behavior | ||||||||||||||||||
| * `test_output` - Output routing and stream behavior | ||||||||||||||||||
| * `test_path_traversal` - Path traversal protections | ||||||||||||||||||
| * `test_resource_limits` - Resource and size limit behavior | ||||||||||||||||||
| * `test_runtime_config` - Runtime configuration changes | ||||||||||||||||||
| * `test_script_name_sanitization` - Script and tag name sanitization | ||||||||||||||||||
| * `test_sensitive_data` - Sensitive data handling protections | ||||||||||||||||||
| * `test_toctou_protection` - TOCTOU/race-condition protections | ||||||||||||||||||
| * `test_unsafe_newlines` - Unsafe newline mode behavior | ||||||||||||||||||
|
|
||||||||||||||||||
| ### Understanding Test Output | ||||||||||||||||||
|
|
||||||||||||||||||
|
|
@@ -151,9 +168,10 @@ Running test_log_levels... | |||||||||||||||||
| Test Summary | ||||||||||||||||||
| ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | ||||||||||||||||||
|
|
||||||||||||||||||
| Total Tests: 103 | ||||||||||||||||||
| Passed: 103 | ||||||||||||||||||
| Total Tests: 466 | ||||||||||||||||||
| Passed: 461 | ||||||||||||||||||
| Failed: 0 | ||||||||||||||||||
| Skipped: 5 | ||||||||||||||||||
|
Comment on lines
+171
to
+174
|
||||||||||||||||||
| Total Tests: 466 | |
| Passed: 461 | |
| Failed: 0 | |
| Skipped: 5 | |
| Total Tests: <total> | |
| Passed: <passed> | |
| Failed: <failed> | |
| Skipped: <skipped> |
Uh oh!
There was an error while loading. Please reload this page.