Skip to content

Commit

Permalink
Fix test command of sonataflow-image-common
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagobento committed Sep 27, 2024
1 parent d2fa9cb commit 5dabf63
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/sonataflow-image-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
"url": "https://github.com/apache/incubator-kie-tools/issues"
},
"scripts": {
"build:prod": "run-script-if --bool \"$(build-env tests.run)\" --then \"pnpm test\"",
"build:prod": "pnpm test",
"install": "node install.js",
"test": "run-script-os",
"test:linux:darwin": "mkdir -p dist-tests && rm -rf dist-tests/* && make -C ./resources bats || $(build-env tests.ignoreFailures) && mv dist-tests/report.xml dist-tests/junit-report.xml || true",
"test:linux:darwin": "run-script-if --ignore-errors \"$(build-env tests.ignoreFailures)\" --bool \"$(build-env tests.run)\" --then \"mkdir -p dist-tests\" \"rm -rf dist-tests/*\" \"make -C ./resources bats\" --finally \"touch dist-tests/report.xml\" \"mv dist-tests/report.xml dist-tests/junit-report.xml\"",
"test:win32": "echo \"Tests are skipped in Windows\""
},
"devDependencies": {
Expand Down
10 changes: 10 additions & 0 deletions scripts/check-junit-report-results/tests/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@ const parseFile = require("../src/parseFile");
const path = require("path");

describe("Parsing", () => {
test("empty", () => {
const failed = [];
const passed = [];

parseFile(path.join(__dirname, "./reports/empty.xml"), failed, passed);

expect(failed.length).toStrictEqual(0);
expect(passed.length).toStrictEqual(0);
});

test("cypress", () => {
const failed = [];
const passed = [];
Expand Down
Empty file.

0 comments on commit 5dabf63

Please sign in to comment.