From 49ecea2b900f70bd54fc7cae44ea634495840427 Mon Sep 17 00:00:00 2001 From: Alec Sears Date: Thu, 10 Oct 2019 15:35:44 -0500 Subject: [PATCH] Set up coverage --- .circleci/config.yml | 1 + Makefile | 2 +- jest.config.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index f6b47cd..9ffff66 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -103,6 +103,7 @@ jobs: paths: - ./vendor - run: make test-ci + - run: bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports" - store_test_results: path: /tmp/circleci-test-results - store_artifacts: diff --git a/Makefile b/Makefile index 1ff7d75..bbcc790 100644 --- a/Makefile +++ b/Makefile @@ -31,7 +31,7 @@ test-backend: go test -v -mod=vendor ./... test-ci: npm run ci-test - go test -race -coverprofile=coverage.txt -covermode=atomic -mod=vendor + go test -race -coverprofile=tmp/coverage/golang/coverage.txt -covermode=atomic -mod=vendor .PHONY: clean clean: diff --git a/jest.config.js b/jest.config.js index edff066..2cc7679 100644 --- a/jest.config.js +++ b/jest.config.js @@ -22,7 +22,7 @@ module.exports = { "^.+\\.js$": "babel-jest", "^.+\\.(ts|tsx)$": "ts-jest" }, - "coverageDirectory": "/tmp/coverage/", + "coverageDirectory": "/tmp/coverage/node/", "collectCoverage": false, "globals": { "ts-jest": {