Skip to content

Conversation

@Molter73
Copy link
Contributor

Description

Add tests that verify we get events when a file is created or modified via a text editor. Since we don't have rename events yet, we lose quite a bit of events, for instance sed modifies files via a temporary file and we don't see the final rename to the modified file, vi and its derivatives do a rename of the file to its name with ~ as a suffix which we also don't catch.

TODO: Add tests with nano.

Checklist

  • Investigated and inspected CI test results
  • Updated documentation accordingly

Automated testing

  • Added unit tests
  • Added integration tests
  • Added regression tests

If any of these don't apply, please comment below.

Testing Performed

TODO(replace-me)
Use this space to explain how you tested your PR, or, if you didn't test it, why you did not do so. (Valid reasons include "CI is sufficient" or "No testable changes")
In addition to reviewing your code, reviewers must also review your testing instructions, and make sure they are sufficient.

For more details, ref the Confluence page about this section.

We also add the ability to compare paths against a regex. This is useful
for sed because in place modifications are actually made through a
temporary file that uses a pattern that we have no control over.
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.

1 participant