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

Testing static generation #1590

Merged
merged 4 commits into from
Nov 3, 2023

Conversation

steveschnepp
Copy link
Member

Having the static generation back is good for security.
It also has an unexpected-at-the-time side-effect : it is now much easier to test HTML.pm and Graph.pm.

This PR is leveraging that side-effect.

Moving most of the code out of the script into lib/ to ease testing.
The sample_data is leveraged in order to avoid the need to call
munin-update, and to have a reproduceable dataset.
@coveralls
Copy link

coveralls commented Nov 3, 2023

Pull Request Test Coverage Report for Build 6750497209

  • 81 of 88 (92.05%) changed or added relevant lines in 6 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage increased (+18.8%) to 70.209%

Changes Missing Coverage Covered Lines Changed/Added Lines %
lib/Munin/Master/Static/CGI.pm 12 14 85.71%
lib/Munin/Master/Graph.pm 3 8 37.5%
Files with Coverage Reduction New Missed Lines %
lib/Munin/Master/UpdateWorker.pm 1 94.01%
Totals Coverage Status
Change from base Build 6722058331: 18.8%
Covered Lines: 1579
Relevant Lines: 2249

💛 - Coveralls

@steveschnepp steveschnepp merged commit af6e4db into munin-monitoring:master Nov 3, 2023
3 checks passed
@steveschnepp steveschnepp deleted the testing-static branch November 3, 2023 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants