Skip to content

Commit f8ede80

Browse files
docs: Better document snapshot workflow (#294)
1 parent b267a8a commit f8ede80

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

docs/Development.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,20 @@ bazel test //test --spawn_strategy=local --config=dev
7676
Update snapshot tests:
7777

7878
```bash
79-
bazel test //update --spawn_strategy=local --config=dev
79+
bazel test //test:update --spawn_strategy=local --config=dev
80+
```
81+
82+
NOTE: When adding a new test case, you need to manually create
83+
an empty `.snapshot.cc` file for recording snapshot output
84+
(it's not automatically generated).
85+
86+
Examples of running subsets of tests (follows directory structure):
87+
88+
```bash
89+
bazel test //test:test_index --spawn_strategy=local --config=dev
90+
bazel test //test:test_index_aliases --spawn_strategy=local --config=dev
91+
bazel test //test:update_index --spawn_strategy=local --config=dev
92+
bazel test //test:update_index_aliases --spawn_strategy=local --config=dev
8093
```
8194

8295
### Indexing large projects

0 commit comments

Comments
 (0)