Skip to content

Improve sensitivity of last two integration tests#904

Open
bbc2 wants to merge 1 commit intolsd-rs:mainfrom
bbc2:fix-integration-test
Open

Improve sensitivity of last two integration tests#904
bbc2 wants to merge 1 commit intolsd-rs:mainfrom
bbc2:fix-integration-test

Conversation

@bbc2
Copy link
Copy Markdown
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
Copy Markdown

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.

Details 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
Copy Markdown

codecov-commenter commented Sep 17, 2023

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.71%. Comparing base (762e724) to head (e61b419).
⚠️ Report is 109 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #904      +/-   ##
==========================================
- Coverage   86.53%   85.71%   -0.82%     
==========================================
  Files          49       49              
  Lines        4848     4852       +4     
==========================================
- Hits         4195     4159      -36     
- Misses        653      693      +40     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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