Skip to content

Commit 65b470f

Browse files
committed
Make format test a bit more integrated (and separable).
1 parent ca389a1 commit 65b470f

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

scripts/ciTest.js

+10-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ var ounitTest = false;
77
var mochaTest = false;
88
var themeTest = false;
99
var bsbTest = false;
10+
var formatTest = false;
1011
var all = false;
1112

1213
if (process.argv.includes("-ounit")) {
@@ -25,6 +26,10 @@ if (process.argv.includes("-bsb")) {
2526
bsbTest = true;
2627
}
2728

29+
if (process.argv.includes("-format")) {
30+
formatTest = true;
31+
}
32+
2833
if (process.argv.includes("-all")) {
2934
all = true;
3035
}
@@ -33,6 +38,7 @@ if (all) {
3338
mochaTest = true;
3439
themeTest = true;
3540
bsbTest = true;
41+
formatTest = true;
3642
}
3743

3844
function init() {
@@ -145,6 +151,10 @@ function runTests() {
145151
}
146152
});
147153
}
154+
155+
if (formatTest) {
156+
checkFormat();
157+
}
148158
}
149159

150160
function checkFormat() {
@@ -158,7 +168,6 @@ function main() {
158168
try {
159169
init();
160170
runTests();
161-
checkFormat();
162171
} catch (err) {
163172
console.error(err);
164173
process.exit(2);

0 commit comments

Comments
 (0)