mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-10-28 10:45:41 +08:00
If LAZYGIT_GOCOVERDIR is set, run_integration_tests.sh collects the coverage of the integration tests. Only the lazygit binary writes its data to that directory, though. The test runner always writes to /tmp/code_coverage, so the data ends up in two places unless the variable points there. On CI it always did. Also, the run fails if the directory doesn't exist yet. With a relative path, the binary's data goes missing, because the binary runs in the directory of the test's repo. Pass the directory to the test runner too, create it if needed, and turn it into an absolute path. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>