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 tests for probe output format #3841

Merged
merged 7 commits into from
Feb 6, 2024

Conversation

spencerschrock
Copy link
Member

What kind of change does this PR introduce?

Add tests

What is the current behavior?

No tests

What is the new behavior (if this is a feature change)?**

Tests, and there's a config option added to the output function. This was primarily done to make the test files more readable, instead of having the JSON output be one long line.

  • Tests for the changes have been added (for bug fixes/features)

Which issue(s) this PR fixes

Fixes #3110

Special notes for your reviewer

Does this PR introduce a user-facing change?

For user-facing changes, please add a concise, human-readable release note to
the release-note

(In particular, describe what changes users might need to make in their
application as a result of this pull request.)

NONE

Signed-off-by: Spencer Schrock <[email protected]>
the ability to pretty print will help write a test function

Signed-off-by: Spencer Schrock <[email protected]>
Signed-off-by: Spencer Schrock <[email protected]>
Signed-off-by: Spencer Schrock <[email protected]>
Signed-off-by: Spencer Schrock <[email protected]>
Signed-off-by: Spencer Schrock <[email protected]>
@spencerschrock spencerschrock requested a review from a team as a code owner February 2, 2024 21:46
@spencerschrock spencerschrock requested review from naveensrinivasan and raghavkaul and removed request for a team February 2, 2024 21:46
Copy link

codecov bot commented Feb 2, 2024

Codecov Report

Merging #3841 (be2dc8d) into main (b03bd23) will decrease coverage by 4.70%.
The diff coverage is 66.66%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3841      +/-   ##
==========================================
- Coverage   75.55%   70.85%   -4.70%     
==========================================
  Files         232      232              
  Lines       15784    15788       +4     
==========================================
- Hits        11925    11187     -738     
- Misses       3122     3914     +792     
+ Partials      737      687      -50     

@spencerschrock spencerschrock enabled auto-merge (squash) February 6, 2024 20:17
@spencerschrock spencerschrock merged commit a762812 into ossf:main Feb 6, 2024
36 checks passed
@spencerschrock spencerschrock deleted the test/probe-format branch February 6, 2024 20:19
fhoeborn pushed a commit to fhoeborn/scorecard that referenced this pull request Apr 1, 2024
* rename probe format file

Signed-off-by: Spencer Schrock <[email protected]>

* add option parameter to probe result output function

the ability to pretty print will help write a test function

Signed-off-by: Spencer Schrock <[email protected]>

* add test func

Signed-off-by: Spencer Schrock <[email protected]>

* add docstring

Signed-off-by: Spencer Schrock <[email protected]>

* clarify test. add another finding

Signed-off-by: Spencer Schrock <[email protected]>

* force add the test file

Signed-off-by: Spencer Schrock <[email protected]>

---------

Signed-off-by: Spencer Schrock <[email protected]>
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.

Feature: add tests to probe format results
3 participants