Commit Graph

17 Commits

Author SHA1 Message Date
hongwei
8b39edb618 refactor/(run_all_tests.sh): fix grep pattern quoting for consistency
- Change double quotes to single quotes in grep regex pattern
- Improve shell script best practices for pattern matching
- Ensure consistent quoting style with grep -E flag usage
2026-01-09 14:29:16 +01:00
hongwei
e9f1ea2167 refactor/(run_all_tests.sh): enhance port management and add timeout support
- Make script executable by updating file permissions
- Remove global `set -e` to prevent grep failures and handle errors explicitly
- Add `--timeout=<minutes>` command line argument for test execution timeout
- Enhance command line argument parsing to support multiple arguments via case statement
- Improve port availability checking with fallback to alternative ports
- Add `find_available_port()` function to search for available ports in range
- Implement dynamic port configuration when primary port is unavailable
- Add error handling with `2>/dev/null` redirects to grep commands in summary generation
- Improve stale process cleanup with safer command substitution
- Add timeout variable initialization for future timeout implementation
- Enhance logging messages with variable port numbers instead of hardcoded values
- Improve robustness of port killing and verification logic with explicit checks
2026-01-09 14:02:24 +01:00
hongwei
fa57525093 refactor/(run_all_tests.sh): enhance HTML report generation with asset copying
- Update surefire report filename from surefire-report.html to surefire.html
- Add copying of CSS, JS, images, fonts, and img directories for proper report rendering
- Copy report assets for both obp-api and obp-commons modules
- Add error suppression for missing asset directories to prevent script failures
- Clarify alternative naming convention in site reports location comment
- Ensure HTML reports render correctly with all required static assets
2026-01-09 12:57:15 +01:00
hongwei
2f68e00c2a refactor/(run_all_tests.sh): add HTML report generation and display functionality
- Add HTML report generation step using mvn surefire-report:report-only
- Create dedicated html-reports directory in test results for organized report storage
- Copy surefire HTML reports from both obp-api and obp-commons modules
- Check multiple report locations (target/surefire-reports and target/site)
- Display generated HTML report paths in final test summary output
- Improve test result accessibility by centralizing HTML reports in one location
2026-01-09 12:27:16 +01:00
hongwei
1428b52905 refactor/(run_all_tests.sh): enhance logging to write to detail log file
- Update log_message function to write messages to both summary and detail log files
- Add output redirection to DETAIL_LOG in addition to existing SUMMARY_LOG
- Improve logging documentation comment to reflect dual log file writes
- Ensures comprehensive logging across all test execution phases
2026-01-09 02:50:28 +01:00
hongwei
ead4bf349c refactor/ (run_all_tests.sh): enhance terminal styling and add phase timing
- Update set_terminal_style() to use phase-specific background colors (gray for starting, orange for building, blue for testing, green for complete)
- Add get_time_ms() function to capture millisecond timestamps across macOS and Linux platforms
- Implement record_phase_time() function to track duration of each test execution phase (starting, building, testing, complete)
- Store phase timing data in temporary file for performance analysis
- Replace grep -P (PCRE) with sed-based parsing for macOS compatibility in generate_summary()
- Update test statistics extraction to sum values across all modules instead of just the last run
- Add cleanup for stale phase_timing.tmp file during initialization
- Improve parsing of Maven output for duration, test counts, and test results using portable sed commands
2026-01-09 02:50:27 +01:00
simonredfern
2957488a68 run_specific_tests.sh picks up tests from file generated by run_all_tests.sh 2025-12-31 04:40:19 +01:00
simonredfern
f612691a36 run_all_tests.sh --summary-only 2025-12-22 22:28:03 +01:00
simonredfern
39bd5e2dc0 run_all_tests.sh pre test cleanup 2025-12-22 18:28:41 +01:00
simonredfern
8627cb12c2 remove colours from run all tests 2025-12-22 17:24:25 +01:00
simonredfern
44cfd59c9a test h2 db file clear at run_all_tests 2 2025-12-21 22:49:55 +01:00
simonredfern
04f04f23a6 test h2 db file clear at run_all_tests start 2025-12-21 18:30:20 +01:00
simonredfern
fabd4ebbce run_all_tests.sh last test run in the title bar every 5 secs 2 2025-12-21 14:18:54 +01:00
simonredfern
f31d4387af run_all_tests.sh last test run in the title bar every 5 secs 2025-12-21 14:08:05 +01:00
simonredfern
58c0091aed run_all_tests.sh tweaking 2 2025-12-21 12:58:44 +01:00
simonredfern
5608df585e run_all_tests.sh tweaking 2025-12-21 11:59:41 +01:00
simonredfern
426fcf8824 run_all_tests.sh 2025-12-21 11:30:01 +01:00