Skip to content

Commit 7130964

Browse files
Run coverage
1 parent 619bfa6 commit 7130964

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,6 @@ jobs:
2020
run: npm run test
2121
- name: Test build
2222
run: npm run build
23+
- name: Run Coverage
24+
run: npm run coverage
2325
# See Jenkinsfile-itest for "Run integration tests" step

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"prepare": "husky",
88
"codegen": "graph codegen subgraph.template.yaml",
99
"test": "npm run codegen && graph test",
10+
"coverage": "npm run codegen && graph test -- -c",
1011
"test-docker": "npm run codegen && docker run -it --rm -v $(pwd):/matchstick/subgraph rainprotocol/matchstick:main",
1112
"build": "npm run codegen && cp subgraph.template.yaml subgraph.yaml && graph build --network ${NETWORK_NAME:-bellecour}",
1213
"create": "graph create ${NETWORK_NAME:-bellecour}/poco --node ${GRAPHNODE_URL:-http://localhost:8020}",

test/Modules/IexecCategoryManager.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { ethereum } from '@graphprotocol/graph-ts';
55
import { assert, describe, newTypedMockEventWithParams, test } from 'matchstick-as/assembly/index';
66
import { CreateCategory } from '../../generated/Core/IexecInterfaceToken';
77
import { handleCreateCategory } from '../../src/Modules/IexecCategoryManager';
8+
export { handleCreateCategory };
89

910
describe('IexecCategoryManager', () => {
1011
test('Should handle CreateCategory', () => {

test/Modules/IexecPoco.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { Address, BigInt, Bytes, ethereum } from '@graphprotocol/graph-ts';
55
import { assert, describe, newTypedMockEventWithParams, test } from 'matchstick-as/assembly/index';
66
import { DealSponsored } from '../../generated/Core/IexecInterfaceToken';
77
import { handleDealSponsored } from '../../src/Modules';
8+
export { handleDealSponsored };
89

910
describe('IexecPoco', () => {
1011
test('Should handle DealSponsored', () => {

0 commit comments

Comments
 (0)