From fc1a9c00b170a8bd01467ce2c91209af52f3896a Mon Sep 17 00:00:00 2001 From: Gustaf Carefall <106698658+Gustaf-C@users.noreply.github.com> Date: Thu, 16 Apr 2026 23:40:20 +0200 Subject: [PATCH] Fix so that failing a test shows in CI --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 10089fd..f20adf1 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "testGrammar": "vscode-tmgrammar-test -s source.matlab -g Matlab.tmbundle/Syntaxes/MATLAB.tmLanguage -t \"./test/*.m\"", "testGrammarSnap": "vscode-tmgrammar-snap -s source.matlab -g Matlab.tmbundle/Syntaxes/MATLAB.tmLanguage -t \"./test/snap/*.m\"", "testLintXML": "xmllint --noout \"Matlab.tmbundle/Syntaxes/MATLAB.tmLanguage\" && echo \"xmllint passed on MATLAB.tmLanguage\"", - "test": "(npm run testLintXML && npm run testGrammar && npm run testGrammarSnap && echo \"All grammar tests passed\") || echo \"Error: One or more tests failed\"", + "test": "(npm run testLintXML && npm run testGrammar && npm run testGrammarSnap && echo \"All grammar tests passed\") || (echo \"Error: One or more tests failed\" && exit 1)", "updateGrammarSnap": "vscode-tmgrammar-snap -s source.matlab -g Matlab.tmbundle/Syntaxes/MATLAB.tmLanguage -t \"./test/snap/*.m\" -u" }, "repository": {