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 automated high-level tests (pre-commit/CLI) #47

Open
apirogov opened this issue Oct 12, 2023 · 0 comments
Open

Add automated high-level tests (pre-commit/CLI) #47

apirogov opened this issue Oct 12, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@apirogov
Copy link
Contributor

As pre-commit is a recommended way of using somesy, we should also add some basic tests to make sure the hook works correctly.

The test could be something like:

  • Initialize a git repo in a temp dir with some test contents and with somesy as pre-commit hook
  • change metadata (change somesy.toml or one of the target files)
  • use pre-commit to check the repo and make sure somesy works as expected (updates files -> "fail")
  • check that after adding the updated changes to the commit, the commit will succeed (somesy will "pass")
@apirogov apirogov added the enhancement New feature or request label Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant