Skip to content

Conversation

@jesseduffield
Copy link
Owner

@jesseduffield jesseduffield commented Dec 20, 2022

  • PR Description
  • migrates a couple more tests
  • bumps gocui
  • removes snapshots from new integration tests

Snapshots were a no-brainer for the old integration test approach, but they're brittle and it's hard to understand why a snapshot differs from what is expected. With the new approach we're going to rely entirely on in-test assertions.

This means that it's possible that issues will arise that tests won't catch, which snapshots would have caught, but the solution to that is to come up with more extensive assertions within our tests.

  • Please check if the PR fulfills these requirements
  • Cheatsheets are up-to-date (run go run scripts/cheatsheet/main.go generate)
  • Code has been formatted (see here)
  • Tests have been added/updated (see here for the integration test guide)
  • Text is internationalised (see here)
  • Docs (specifically docs/Config.md) have been updated if necessary
  • You've read through your own file changes for silly mistakes etc
@jesseduffield jesseduffield merged commit 6ec88ce into master Dec 20, 2022
@jesseduffield jesseduffield deleted the migrate-more-tests branch December 20, 2022 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants