Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Accept optional dir of coverage test inputs #2853

Merged
merged 4 commits into from
Feb 16, 2023

Conversation

ranweiler
Copy link
Member

Add a new --input-dir/-d argument to the coverage recording example exe. When provided, the exe will record the combined coverage of every file found in input_dir, substituting the file path for the special marker @@. When not provided, the target command will be executed exactly as-is (the previous behavior).

@codecov-commenter
Copy link

codecov-commenter commented Feb 16, 2023

Codecov Report

Merging #2853 (35ab044) into main (572671b) will increase coverage by 1.48%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #2853      +/-   ##
==========================================
+ Coverage   26.59%   28.08%   +1.48%     
==========================================
  Files         125      302     +177     
  Lines       13414    35653   +22239     
==========================================
+ Hits         3568    10012    +6444     
- Misses       9846    25641   +15795     
Impacted Files Coverage Δ
src/agent/onefuzz/src/syncdir.rs 10.90% <0.00%> (ø)
...c/agent/onefuzz-file-format/src/coverage/source.rs 66.66% <0.00%> (ø)
...nt/onefuzz-task/src/tasks/report/dotnet/generic.rs 0.00% <0.00%> (ø)
src/agent/onefuzz-agent/src/worker.rs 57.94% <0.00%> (ø)
src/agent/onefuzz/src/heartbeat.rs 0.00% <0.00%> (ø)
src/agent/win-util/src/wer.rs 0.00% <0.00%> (ø)
src/agent/onefuzz/src/machine_id.rs 20.51% <0.00%> (ø)
src/agent/onefuzz-task/src/tasks/merge/generic.rs 0.00% <0.00%> (ø)
...ent/onefuzz-task/src/local/libfuzzer_regression.rs 0.00% <0.00%> (ø)
...nt/onefuzz-task/src/tasks/merge/libfuzzer_merge.rs 0.00% <0.00%> (ø)
... and 167 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@ranweiler ranweiler merged commit ea90eb3 into microsoft:main Feb 16, 2023
@ranweiler ranweiler deleted the coverage-example-input-dir branch February 16, 2023 20:59
@mgreisen mgreisen mentioned this pull request Mar 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants