Skip to content

Conversation

edburns
Copy link

@edburns edburns commented Jul 24, 2025

JMeter Test Integration with JaCoCo Code Coverage and Logging Enhancements

This PR implements a comprehensive test framework for Cargo Tracker including JMeter-based integration tests and JaCoCo code coverage analysis. The following changes are included:

Key Features

  1. JMeter Integration

    • Added JMeter test profile with proper Maven configuration
    • Created and improved test flows for cargo tracking, booking, and event logging
    • Fixed JSF ViewState handling to ensure proper test execution
  2. JaCoCo Code Coverage

    • Implemented JaCoCo agent configuration for integration testing
    • Added reporting capabilities to generate detailed code coverage metrics
    • Configured proper agent connectivity to gather metrics during test execution
  3. Enhanced Logging

    • Added LogUtils utility class with performance-optimized logging methods
    • Implemented proper logging configuration for Liberty
    • Added detailed logging properties to trace application behavior
  4. Configuration Improvements

    • Updated server.xml with improved logging settings
    • Added bootstrap.properties with JaCoCo and trace settings
    • Created jvm.options file to properly reference logging configuration

Technical Notes

  • The JMeter tests now successfully run with Maven, demonstrated by successful test results
  • Code coverage is captured during test execution and reports are generated
  • Logging is properly configured with appropriate levels for different packages
  • Both manual testing and automated testing through JMeter are now possible

This work supports improved quality assurance by providing automated integration testing with code coverage metrics, helping identify potential issues and untested code paths.

edburns added 9 commits July 23, 2025 13:30
Your branch is up to date with 'origin/edburns/eb-7739-99-520-week-30'.

Changes to be committed:
  (use "git restore --staged <file>..." to unstage)
	modified:   pom.xml
	new file:   src/main/tests/jmeter/Cargotracker-week29.jmx

Signed-off-by: Ed Burns <edburns@microsoft.com>
Your branch is up to date with 'origin/edburns/eb-7739-99-520-week-30'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
	modified:   pom.xml
	modified:   src/main/tests/jmeter/Cargotracker-week29.jmx

no changes added to commit (use "git add" and/or "git commit -a")

Signed-off-by: Ed Burns <edburns@microsoft.com>
Your branch is up to date with 'origin/edburns/eb-7739-99-520-week-30'.

Untracked files:
  (use "git add <file>..." to include in what will be committed)
	20250723-01-chat-logs.md

nothing added to commit but untracked files present (use "git add" to track)

Signed-off-by: Ed Burns <edburns@microsoft.com>
Your branch is up to date with 'origin/edburns/eb-7739-99-520-week-30'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
	modified:   pom.xml
	modified:   src/main/liberty/config/bootstrap.properties
	modified:   src/main/liberty/config/server.xml

Untracked files:
  (use "git add <file>..." to include in what will be committed)
	src/main/java/org/eclipse/cargotracker/infrastructure/logging/LogUtils.java
	src/main/liberty/config/jvm.options
	src/main/liberty/config/logging.properties

no changes added to commit (use "git add" and/or "git commit -a")

Signed-off-by: Ed Burns <edburns@microsoft.com>
Your branch is up to date with 'origin/edburns/eb-7739-99-520-week-30'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
	modified:   pom.xml
	modified:   src/main/liberty/config/bootstrap.properties
	modified:   src/main/liberty/config/server.xml

Untracked files:
  (use "git add <file>..." to include in what will be committed)
	src/main/java/org/eclipse/cargotracker/infrastructure/logging/LogUtils.java
	src/main/liberty/config/jvm.options
	src/main/liberty/config/logging.properties

no changes added to commit (use "git add" and/or "git commit -a")

Signed-off-by: Ed Burns <edburns@microsoft.com>
Your branch is up to date with 'origin/edburns/eb-7739-99-520-week-30'.

Changes to be committed:
  (use "git restore --staged <file>..." to unstage)
	deleted:    src/main/java/org/eclipse/cargotracker/infrastructure/logging/LogUtils.java

Signed-off-by: Ed Burns <edburns@microsoft.com>
@edburns edburns force-pushed the edburns/eb-7739-99-520-week-30 branch from 2535000 to ad7ede6 Compare July 24, 2025 18:07
@edburns edburns closed this Jul 31, 2025
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