Skip to content

Commit 9d40c71

Browse files
committed
Add an update-test make target.
The `update-test` make target will automatically update the output of any test that failed. This kind of bulk update is intended to be used when the changes to scopes affect a large number of files. Of course, the actual updated tests should still be reviewed for correctness.
1 parent 076e2bb commit 9d40c71

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Makefile

+5
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ ci-test: release
1515
] ; \
1616
then echo "Error: package.version != git.tag" && exit 1 ; fi
1717

18+
update-test:
19+
# Run tests and overwrite the output
20+
./node_modules/.bin/syntaxdev test --tests test/**/*.py --syntax grammars/src/MagicPython.syntax.yaml --overwrite-tests
21+
./node_modules/.bin/syntaxdev test --tests test/**/*.re --syntax grammars/src/MagicRegExp.syntax.yaml --overwrite-tests
22+
1823
test: ci-test
1924
atom -t test/atom-spec
2025

0 commit comments

Comments
 (0)