Skip to content
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

Add Code Coverage framework #405

Merged
merged 13 commits into from
Nov 19, 2024
Merged

Add Code Coverage framework #405

merged 13 commits into from
Nov 19, 2024

Conversation

ferpasri
Copy link
Member

@ferpasri ferpasri commented Sep 23, 2024

  1. Add testar\coverage framework
  2. Add testar\coverage\jacoco implementation:
  • Get Jacoco sequence coverage

  • Get Jacoco action coverage

  • Get Jacoco action accumulative coverage

  • Discuss the inclusion of configurable settings in the TESTAR dialog

  • Add JUnit/CI test before merging

  • Update Version and Date

  1. Fix reporter crash when action Desc is null HtmlReporter crashes when action is missing the Desc tag #407

ferpasri and others added 10 commits July 10, 2024 21:45
- This feature enabled continuously merging the extracted coverage to have an accumulative coverage that grows between action-sequences
- Update HtmlReporter and PlainTextReporter to deal with actions that do not contain the Tags.Desc
- Update NOP actions to create the 'No operation' Description by default
- Create the 'StdActionCompiler.noOperationalState' for those situations in which doing nothing in the state is a valid action
@ferpasri
Copy link
Member Author

ferpasri commented Oct 29, 2024

How to test:

  1. Use desktop_java_coverage/Protocol_desktop_java_coverage.java
  2. Extract and configure the suts/PrintLogFile folder that contains the JacocoCoverageClasses
  3. Play with the accumulative enabled/disabled option to check that TESTAR creates accumulative or independent test coverage results in the output folder

These steps can also be validated with SwingSet2 protocol by preparing the adequate TESTAR settings

Check the visual settings in the TESTAR dialog - Advanced panel

@ferpasri ferpasri merged commit 37d1464 into master Nov 19, 2024
6 of 9 checks passed
@ferpasri ferpasri deleted the master_coverage branch November 21, 2024 15:00
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.

HtmlReporter crashes when action is missing the Desc tag
2 participants