Skip to content

Commit

Permalink
Do NOT merge.
Browse files Browse the repository at this point in the history
Isolate test suites and increase log level for debugging.
  • Loading branch information
Kurt-von-Laven committed Apr 4, 2023
1 parent 080d06b commit 41a56a8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/test-mega-linter-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,11 @@ jobs:
node-version: "12"
- name: Install dependencies
run: cd mega-linter-runner && yarn install --frozen-lockfile && npm link
- name: Run tests
run: cd mega-linter-runner && npm run test
- name: Run CLI tests
run: cd mega-linter-runner && npm run test:cli
- name: Run module tests
if: always()
run: cd mega-linter-runner && npm run test:module
- name: Run upgrade tests
if: always()
run: cd mega-linter-runner && npm run test:upgrade
5 changes: 4 additions & 1 deletion mega-linter-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
"mega-linter-runner": "lib/index.js"
},
"scripts": {
"test": "mocha \"test/**/*.test.js\""
"test": "mocha \"test/**/*.test.js\"",
"test:cli": "mocha test/megalinter-cli.test.js",
"test:module": "mocha test/megalinter-module.test.js",
"test:upgrade": "mocha test/megalinter-upgrade.test.js"
},
"keywords": [
"mega-linter",
Expand Down
2 changes: 1 addition & 1 deletion mega-linter-runner/test/megalinter-module.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Disabled until find a way to run with default options
path: "./..",
release,
nodockerpull,
env: ["ENABLE=YAML"],
env: ["ENABLE=YAML", "LOG_LEVEL=DEBUG"],
};
const res = await new MegaLinterRunner().run(options);
assert(res.status === 0, `status is 0 (${res.status} returned)`);
Expand Down

0 comments on commit 41a56a8

Please sign in to comment.