From 13337e365d44c10a81dee6aef0df90adb648c74c Mon Sep 17 00:00:00 2001 From: Florian Sihler Date: Sun, 6 Aug 2023 02:23:22 +0200 Subject: [PATCH] lint: report test coverage on test runs --- .nycrc | 10 ++++++++++ mocha-config.json | 3 --- package.json | 2 +- src/cli/index.ts | 0 src/util/xpath.ts | 0 test/slicing/reconstruct/simple.ts | 5 +++++ 6 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 .nycrc delete mode 100644 mocha-config.json delete mode 100644 src/cli/index.ts delete mode 100644 src/util/xpath.ts diff --git a/.nycrc b/.nycrc new file mode 100644 index 0000000000..74f4a4dd45 --- /dev/null +++ b/.nycrc @@ -0,0 +1,10 @@ +{ + "all": true, + "per-file": true, + "check-coverage": false, + "skip-full": false, + "lines": 70, + "extension": [".ts"], + "include": "src/**/*.ts", + "reporter": ["html", "text", "lcov", "cobertura"] +} diff --git a/mocha-config.json b/mocha-config.json deleted file mode 100644 index 85a8fbc9ef..0000000000 --- a/mocha-config.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "reporterEnabled": "spec" -} diff --git a/package.json b/package.json index 14a29d9fdb..d613339758 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "export-quads": "ts-node src/cli/export-quads-app.ts", "build": "tsc", "doc": "typedoc --options typedoc.json", - "test": "nyc --no-clean --silent mocha --require ts-node/register --timeout 10000 \"test/**/*.spec.ts\" --reporter mocha-multi-reporters --reporter-options configFile=mocha-config.json", + "test": "nyc --no-clean mocha --require ts-node/register --timeout 10000 \"test/**/*.spec.ts\"", "test-full": "npm run test -- --test-installation" }, "keywords": [], diff --git a/src/cli/index.ts b/src/cli/index.ts deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/src/util/xpath.ts b/src/util/xpath.ts deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/test/slicing/reconstruct/simple.ts b/test/slicing/reconstruct/simple.ts index c3f0d4a38d..a819f9b854 100644 --- a/test/slicing/reconstruct/simple.ts +++ b/test/slicing/reconstruct/simple.ts @@ -106,5 +106,10 @@ c <- 3 assertReconstructed('Reconstruct access in pipe', shell, ` ls <- x[[1]] %>% st_cast() class(ls)`, '2', `x[[1]]`) + + /* TODO: fix post thesis + assertReconstructed('Reconstruct access in pipe', shell, ` +ls <- x[[1]] %*% st_cast() +class(ls)`, '2', `x[[1]]`)*/ }) }))