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

Enhance Test Coverage for SPDF/Utils Classes #1385

Merged
merged 6 commits into from
Jun 7, 2024

Conversation

jimdouk
Copy link
Contributor

@jimdouk jimdouk commented Jun 6, 2024

Description

My partner @foivospro and I created tests for the classes in the SPDF/utils file to increase the project's coverage rate. We did not create a new issue for this PR because we referenced the discussion, "The test coverage is pretty low. Is it in a separate repository? #1156."

Checklist:

  • I have read the Contribution Guidelines
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings

Contributor License Agreement

By submitting this pull request, I acknowledge and agree that my contributions will be included in Stirling-PDF and that they can be relicensed in the future under the MPL 2.0 (Mozilla Public License Version 2.0) license.

(This does not change the general open-source nature of Stirling-PDF, simply moving from one license to another license)

@jimdouk jimdouk requested a review from Frooodle as a code owner June 6, 2024 10:03
@Frooodle
Copy link
Member

Frooodle commented Jun 6, 2024

ProcessExecutorTest > testRunCommandWithOutputHandling_Error() FAILED
org.opentest4j.AssertionFailedError at ProcessExecutorTest.java:49

@jimdouk jimdouk changed the title "nhance Test Coverage for SPDF/Utils Classes Enhance Test Coverage for SPDF/Utils Classes Jun 7, 2024
Copy link

sonarqubecloud bot commented Jun 7, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@jimdouk
Copy link
Contributor Author

jimdouk commented Jun 7, 2024

I made one change on the test and I think it is ok now.

@Frooodle Frooodle merged commit fc08787 into Stirling-Tools:main Jun 7, 2024
4 checks passed
szinn referenced this pull request in szinn/k8s-homelab Jun 9, 2024
…0.25.3 ) (#3802)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
|
[ghcr.io/stirling-tools/s-pdf](https://github.com/Stirling-Tools/Stirling-PDF)
| patch | `0.25.2` -> `0.25.3` |

---

### Release Notes

<details>
<summary>Stirling-Tools/Stirling-PDF
(ghcr.io/stirling-tools/s-pdf)</summary>

###
[`v0.25.3`](https://github.com/Stirling-Tools/Stirling-PDF/releases/tag/v0.25.3):
0.25.3 fix for version number not showing

[Compare
Source](https://github.com/Stirling-Tools/Stirling-PDF/compare/v0.25.2...v0.25.3)

fix for version number not showing

#### What's Changed

- (Sonar) Fixed finding: "`@Override` should be used on overriding and
implementing methods" by
[@&#8203;pixeebot](https://github.com/pixeebot) in
[https://github.com/Stirling-Tools/Stirling-PDF/pull/1396](https://github.com/Stirling-Tools/Stirling-PDF/pull/1396)
- (Sonar) Fixed finding: "Utility classes should not have public
constructors" by [@&#8203;pixeebot](https://github.com/pixeebot) in
[https://github.com/Stirling-Tools/Stirling-PDF/pull/1397](https://github.com/Stirling-Tools/Stirling-PDF/pull/1397)
- 💾 Update Version by
[@&#8203;github-actions](https://github.com/github-actions) in
[https://github.com/Stirling-Tools/Stirling-PDF/pull/1399](https://github.com/Stirling-Tools/Stirling-PDF/pull/1399)
- Enhance Test Coverage for SPDF/Utils Classes by
[@&#8203;jimdouk](https://github.com/jimdouk) in
[https://github.com/Stirling-Tools/Stirling-PDF/pull/1385](https://github.com/Stirling-Tools/Stirling-PDF/pull/1385)

**Full Changelog**:
Stirling-Tools/Stirling-PDF@v0.25.2...v0.25.3

</details>

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zOTkuOCIsInVwZGF0ZWRJblZlciI6IjM3LjM5OS44IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZS9jb250YWluZXIiLCJ0eXBlL3BhdGNoIl19-->

Co-authored-by: repo-jeeves[bot] <106431701+repo-jeeves[bot]@users.noreply.github.com>
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