Skip to content

Commit

Permalink
lint: report test coverage on test runs
Browse files Browse the repository at this point in the history
  • Loading branch information
EagleoutIce committed Aug 6, 2023
1 parent cecffd1 commit 13337e3
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 4 deletions.
10 changes: 10 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -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"]
}
3 changes: 0 additions & 3 deletions mocha-config.json

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [],
Expand Down
Empty file removed src/cli/index.ts
Empty file.
Empty file removed src/util/xpath.ts
Empty file.
5 changes: 5 additions & 0 deletions test/slicing/reconstruct/simple.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]]`)*/
})
}))

0 comments on commit 13337e3

Please sign in to comment.