From 1850b68ad3bff540b731caa36759d6d105052713 Mon Sep 17 00:00:00 2001 From: Shunji Zhan Date: Wed, 18 Sep 2024 20:45:12 +0800 Subject: [PATCH] test --- .github/workflows/test.yml | 2 +- c8rc.json | 4 +++- package.json | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 15483aa..4313a8b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,7 +33,7 @@ jobs: uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} - # files: ./coverage/lcov.info + file: coverage/lcov.info fail_ci_if_error: true diff --git a/c8rc.json b/c8rc.json index f6b4d78..7d129e6 100644 --- a/c8rc.json +++ b/c8rc.json @@ -4,5 +4,7 @@ "exclude": ["**/*.test.ts"], "reporter": ["html", "text", "lcov"], "all": true, - "require": ["ts-node/register"] + "require": ["ts-node/register"], + "report-dir": "./coverage", + "output": "./coverage/lcov.info" } \ No newline at end of file diff --git a/package.json b/package.json index 7425e9e..fef99f7 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "start:coverage": "pm2 start --name relayer 'c8 node -r ts-node/register src/index.ts' && ./scripts/health-check.sh", "stop:coverage": "pm2 stop relayer && pm2 delete relayer", "start:test-infra": "docker compose up", - "test": "vitest src/__tests__/*.test.ts --singleThread --run", + "test": "vitest src/__tests__/xcm.test.ts --singleThread --run", "test:coverage": "yarn start:coverage && yarn test && yarn stop:coverage", "test:ci": "yarn start:test-infra -d; yarn test:coverage", "clean": "rm -rf coverage .nyc_output dist/"