From 6d7a7afbbc091558e79f4418fbea03689cae30ff Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Mon, 15 Aug 2022 19:24:36 +1000 Subject: [PATCH] update test readme --- pkg/integration/README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/pkg/integration/README.md b/pkg/integration/README.md index 912e825ba..916149cea 100644 --- a/pkg/integration/README.md +++ b/pkg/integration/README.md @@ -1,6 +1,18 @@ # Integration Tests -The pkg/integration pacakge 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. +The pkg/integration 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. + +TL;DR: integration tests live in pkg/integration/tests. Run integration tests with: + +```sh +go run cmd/integration_test/main.go tui +``` + +or + +```sh +go run cmd/integration_test/main.go cli [--slow] [testname or testpath...] +``` ## Writing tests