Skip to content

Commit 532d9bf

Browse files
docs: Add note about adding .snapshot.rb files manually. (#39)
1 parent 2c39e66 commit 532d9bf

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

scip-ruby.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,15 @@ Updating snapshots
3333
./bazel test //test/scip:update --config=dbg
3434
```
3535

36+
## Writing a new SCIP test
37+
38+
See the existings tests under `test/scip/testdata`
39+
and copy the structure. One caveat is that the first time
40+
you add a new test, you should create matching `.snapshot.rb` files
41+
(which may be empty) for all new `.rb` files,
42+
since those are used as inputs to Bazel.
43+
If you know of a way to get rid of that annoyance, submit a PR.
44+
3645
## Manually testing against larger codebases
3746

3847
Some OSS repos that can be used to exercise scip-ruby are:

0 commit comments

Comments
 (0)