jesseduffield.lazygit/pkg/integration
2022-08-13 13:55:08 +10:00
..
deprecated move code from main into app package to allow test to be injected 2022-08-13 13:55:08 +10:00
helpers move code from main into app package to allow test to be injected 2022-08-13 13:55:08 +10:00
runner move code from main into app package to allow test to be injected 2022-08-13 13:55:08 +10:00
tests move code from main into app package to allow test to be injected 2022-08-13 13:55:08 +10:00
tui move code from main into app package to allow test to be injected 2022-08-13 13:55:08 +10:00
types move code from main into app package to allow test to be injected 2022-08-13 13:55:08 +10:00
integration.go move code from main into app package to allow test to be injected 2022-08-13 13:55:08 +10:00
integration_test.go move code from main into app package to allow test to be injected 2022-08-13 13:55:08 +10:00
README.md move code from main into app package to allow test to be injected 2022-08-13 13:55:08 +10:00

Integration Tests

There's a lot happening in this package so it's worth a proper explanation.

This package is for integration testing: that is, actually running a real lazygit session and having a robot pretend to be a human user and then making assertions that everything works as expected.

There are three ways to invoke a test:

  1. go run pkg/integration/runner/main.go commit/new_branch
  2. go test pkg/integration/integration_test.go