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

Improve sensitivity of last two integration tests #904

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bbc2
Copy link
Contributor

@bbc2 bbc2 commented Sep 16, 2023

Those tests were only checking that the output was nonempty, so they would pretty much never detect anything fishy. We could go further but it's nontrivial because the output is nondeterministic (because of temporary files) and it's unclear if we want to build complex regexes in the test suite right now. In the meantime, here's a basic improvement.


TODO

  • Use cargo fmt
  • Add necessary tests
  • Add changelog entry
  • Update default config/theme in README (if applicable)
  • Update man page at lsd/doc/lsd.md (if applicable)

@muniu-bot
Copy link

muniu-bot bot commented Sep 16, 2023

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: bbc2

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@bbc2 bbc2 force-pushed the fix-integration-test branch from c25c28c to e61b419 Compare September 16, 2023 13:02
Those tests were only checking that the output was nonempty, so they
would pretty much never detect anything fishy. We could go further but
it's nontrivial because the output is nondeterministic (because of
temporary files) and it's unclear if we want to build complex regexes in
the test suite right now. In the meantime, here's a basic improvement.
@codecov-commenter
Copy link

Codecov Report

Merging #904 (e61b419) into master (762e724) will decrease coverage by 0.82%.
Report is 1 commits behind head on master.
The diff coverage is 100.00%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

@@            Coverage Diff             @@
##           master     #904      +/-   ##
==========================================
- Coverage   86.53%   85.71%   -0.82%     
==========================================
  Files          49       49              
  Lines        4848     4852       +4     
==========================================
- Hits         4195     4159      -36     
- Misses        653      693      +40     
Files Changed Coverage Δ
tests/integration.rs 100.00% <100.00%> (ø)

... and 13 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

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