Skip to content

Commit aa79872

Browse files
authored
Revert "feat(tests): add code coverage reporting (#817)" (#883)
This reverts commit c8e78f2.
1 parent c8e78f2 commit aa79872

File tree

7 files changed

+27
-2214
lines changed

7 files changed

+27
-2214
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ on:
1111
description: The commit SHA to run the workflow on
1212
required: false
1313
type: string
14-
secrets:
15-
codecov_token:
16-
description: Codecov token
17-
required: true
1814

1915
jobs:
2016
build:
@@ -74,32 +70,11 @@ jobs:
7470
runs-on: ubuntu-latest
7571
needs: build
7672
steps:
77-
- name: Checkout code
78-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
79-
with:
80-
ref: ${{ inputs.sha }}
81-
8273
- name: Load test image
8374
uses: guidojw/actions/load-docker-image@abb0ee8d1336edf73383f2e5a09abd3a22f25b13 # v1.3.3
8475
with:
8576
name: app
8677

8778
- name: Test
8879
run: |
89-
mkdir coverage
90-
docker run -e CI=true -e COVERAGE=true -v "$(pwd)"'/coverage:/opt/app/coverage' app yarn test:ember
91-
92-
- name: Upload coverage report to Codecov
93-
if: ${{ !cancelled() }}
94-
uses: codecov/codecov-action@54bcd8715eee62d40e33596ef5e8f0f48dbbccab # v4.1.0
95-
with:
96-
fail_ci_if_error: true
97-
token: ${{ secrets.CODECOV_TOKEN }}
98-
99-
- name: Upload coverage report artifact
100-
if: ${{ !cancelled() }}
101-
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
102-
with:
103-
name: coverage
104-
path: coverage/
105-
if-no-files-found: error
80+
docker run -e CI=true -t app yarn test:ember

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
[![Continuous Integration](https://github.com/csvalpha/amber-ui/actions/workflows/continuous-integration.yml/badge.svg)](https://github.com/csvalpha/amber-ui/actions/workflows/continuous-integration.yml)
44
[![Continuous Delivery](https://github.com/csvalpha/amber-ui/actions/workflows/continuous-delivery.yml/badge.svg)](https://github.com/csvalpha/amber-ui/actions/workflows/continuous-delivery.yml)
5-
[![codecov](https://codecov.io/gh/csvalpha/amber-ui/graph/badge.svg?token=GMTXV28YQF)](https://codecov.io/gh/csvalpha/amber-ui)
65

76
## Prerequisites
87

ember-cli-build.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ module.exports = function (defaults) {
2323
},
2424

2525
babel: {
26-
plugins: [...require('ember-cli-code-coverage').buildBabelPlugin()],
2726
sourceMaps: 'inline',
2827
},
2928

mirage/config.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
export default function () {
2-
this.passthrough('/write-coverage');
3-
42
this.namespace = '/api/v1';
53

64
this.post(

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
"ember-can": "^4.2.0",
4747
"ember-cli": "~4.11.0",
4848
"ember-cli-babel": "^7.26.10",
49-
"ember-cli-code-coverage": "^2.0.0",
5049
"ember-cli-content-security-policy": "^2.0.3",
5150
"ember-cli-dependency-checker": "^3.2.0",
5251
"ember-cli-dropzonejs": "^1.3.6",

tests/test-helper.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,9 @@ import * as QUnit from 'qunit';
44
import { setApplication } from '@ember/test-helpers';
55
import { setup } from 'qunit-dom';
66
import { start } from 'ember-qunit';
7-
import {
8-
forceModulesToBeLoaded,
9-
sendCoverage,
10-
} from 'ember-cli-code-coverage/test-support';
117

128
setApplication(Application.create(config.APP));
139

1410
setup(QUnit.assert);
1511

16-
QUnit.done(async function () {
17-
forceModulesToBeLoaded();
18-
await sendCoverage();
19-
});
20-
2112
start();

0 commit comments

Comments
 (0)