mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-02-01 13:17:53 +02:00
update integration test notes
This commit is contained in:
parent
21336d3aa2
commit
90c9c46ffc
@ -96,16 +96,14 @@ MODE=record go test ./pkg/gui -run /<test name>
|
|||||||
The resulting directory will look like:
|
The resulting directory will look like:
|
||||||
|
|
||||||
```
|
```
|
||||||
actual/ (the resulting repo after running the test, ignored by git)
|
actual/ (the resulting repo(s) after running the test, ignored by git)
|
||||||
expected/ (the 'snapshot' repo)
|
expected/ (the 'snapshot' repo(s))
|
||||||
config/ (need not be present)
|
config/ (need not be present)
|
||||||
test.json
|
test.json
|
||||||
setup.sh
|
setup.sh
|
||||||
recording.json
|
recording.json
|
||||||
```
|
```
|
||||||
|
|
||||||
Feel free to create a hierarchy of directories in the `test/integration` directory to group tests by feature.
|
|
||||||
|
|
||||||
## Sandboxing
|
## Sandboxing
|
||||||
|
|
||||||
The integration tests serve a secondary purpose of providing a setup for easy sandboxing. If you want to run a test in sandbox mode (meaning the session won't be recorded and we won't create/update snapshots), go:
|
The integration tests serve a secondary purpose of providing a setup for easy sandboxing. If you want to run a test in sandbox mode (meaning the session won't be recorded and we won't create/update snapshots), go:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user