Skip to content

Commit

Permalink
Add section in integration readme about testing against old git versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseduffield committed Jul 29, 2023
1 parent 2561530 commit e162fd0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/integration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,12 @@ If you need to share test logic across test directories you can put helper funct
### Don't do too much in one test

If you're testing different pieces of functionality, it's better to test them in isolation using multiple short tests, compared to one larger longer test. Sometimes it's appropriate to have a longer test which tests how various different pieces interact, but err on the side of keeping things short.

## Testing against old git versions

Our CI tests against multiple git versions. If your test fails on an old version, then to troubleshoot you'll need to install the failing git version. One option is to use [rtx](https://github.com/jdxcode/rtx) (see installation steps in the readme) with the git plugin like so:
```sh
rtx plugin add git
rtx install git 2.20.0
rtx local git 2.20.0
```

0 comments on commit e162fd0

Please sign in to comment.