Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add code coverage tooling #45

Closed
wants to merge 17 commits into from
Closed
Show file tree
Hide file tree
Changes from 13 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Coveralls
on: [ push, pull_request ]

jobs:
wear:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/[email protected]
- name: Setup Node.js environment
uses: actions/[email protected]
- run: npm install
- name: Run tests
run: npm run test || exit 0
- name: Write coverage
run: npm run coveralls
- name: Setup Coveralls
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
15 changes: 13 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
lib
node_modules

# compile
lib

# test
coverage
test/output
.nyc_output

# configuration
secret.bat
.env
manifest.itsyn.yml

# ???
node.exe
manifest.itsyn.yml
13 changes: 13 additions & 0 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"require": [
"ts-node/register",
"source-map-support/register",
"mocha-suppress-logs"
],
"recursive": true,
"extension": ["ts"],
"exclude": [
"test/TestConnector/Main.ts"
],
"timeout": 120000
}
6 changes: 6 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "@istanbuljs/nyc-config-typescript",
"reporter": [
"text", "html"
]
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The **@itwin/connector-framework** package contains the classes which comprise t

e.g. the class `iModelBridge` becomes `iTwinConnector`

2. TypeScript source files should import the new classes from `@itwin/connector-framework`.
2. TypeScript source files should import the new classes from `@itwin/connector-framework`.

e.g.

Expand Down
Loading