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

Test history refactoring and improvements #446

Closed

Conversation

mdealer
Copy link
Contributor

@mdealer mdealer commented Oct 17, 2022

See https://github.com/mdealer/junit-plugin/releases/tag/junit-1.63.2-refactor-test-history

TL;DR:

  • Major performance and usability improvements to the test history file storage, history charts and test failure age computation.

TODOs:

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Provide new tests
  • Fix some existing tests
  • sync with latest master

Some guidance on what is the best way to debug the automated tests without resorting to logging (that would take ages) would be helpful. Based on continuous live/production usage on our side, it works.

Live 'tested' with multibranch and plain pipeline jobs with JUnit and TestNG test reports. Newer versions of xUnit seem to have issues due to this being based on the older junit-plugin 1.63

@timja
Copy link
Member

timja commented Oct 17, 2022

Some guidance on what is the best way to debug the automated tests without resorting to logging (that would take ages) would be helpful. Based on continuous live/production usage on our side, it works.

you should just be able to open them in a Java IDE and put breakpoints in and run the test in debug mode. Nothing special required in this project

@mdealer
Copy link
Contributor Author

mdealer commented Oct 17, 2022

Some guidance on what is the best way to debug the automated tests without resorting to logging (that would take ages) would be helpful. Based on continuous live/production usage on our side, it works.

you should just be able to open them in a Java IDE and put breakpoints in and run the test in debug mode. Nothing special required in this project

Can VS Code do this? I tried putting some breakpoints and pressing F5 but it does nothing. What IDE do you use? Ok, I guess I will go back to Eclipse once again (after 10 years break).

@timja
Copy link
Member

timja commented Oct 17, 2022

I (and most other Java developers) use IntelliJ.

Eclipse should work but I haven't touched it in ~8 years so couldn't say.

VS Code should be able but I've never tried.

@mdealer
Copy link
Contributor Author

mdealer commented Oct 17, 2022

Thanks, after trying around a bunch of times, I settled on IntelliJ.

Edgars Batna added 26 commits March 3, 2023 14:09
More logging.
Parallel history stream.
… tests.

Add timeout and build count limit.
Reduce trend chart loading times.
Display same count of builds in trend chart as in table.
Workaround for jQuery issue.
Support decimal duration.
Increase builds in view to 100.
Round maximum up if over 0.5.
Reuse the retrieved history for chart generator to avoid multiple requests.
Fix click on chart.
…it goofy).

Improve chart appearance.
Show both charts.
Add history size links.
Improve history page load time.
Add Total line.
More distinct line colors.
Improve overall appearance.
Increase age computation window to 25 to skip over builds without results.
Fix test compilation error.
Update POM.
@mdealer mdealer force-pushed the no-stage-name-in-test-name-junit-1.63 branch from 5e719aa to bbb187c Compare March 3, 2023 14:14
@mdealer
Copy link
Contributor Author

mdealer commented Jul 10, 2024

Updated via #625

@mdealer mdealer closed this Jul 10, 2024
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.

2 participants