Skip to content

Commit 3f52c40

Browse files
committed
Removed coverage tasks from Gruntfile
refs TryGhost#9441
1 parent 3df6b71 commit 3f52c40

File tree

3 files changed

+18
-125
lines changed

3 files changed

+18
-125
lines changed

Gruntfile.js

+1-44
Original file line numberDiff line numberDiff line change
@@ -142,38 +142,6 @@ const configureGrunt = function (grunt) {
142142
single: {}
143143
},
144144

145-
// ### grunt-mocha-istanbul
146-
// Configuration for the mocha test coverage generator
147-
// `grunt coverage`.
148-
mocha_istanbul: {
149-
coverage: {
150-
// they can also have coverage generated for them & the order doesn't matter
151-
src: [
152-
'core/test/unit'
153-
],
154-
options: {
155-
mask: '**/*_spec.js',
156-
coverageFolder: 'core/test/coverage/unit',
157-
mochaOptions: ['--timeout=15000', '--require', 'core/server/overrides', '--exit'],
158-
excludes: ['core/client', 'core/server/built']
159-
}
160-
},
161-
coverage_all: {
162-
src: [
163-
'core/test/acceptance',
164-
'core/test/regression',
165-
'core/test/unit'
166-
],
167-
options: {
168-
coverageFolder: 'core/test/coverage/all',
169-
mask: '**/*_spec.js',
170-
mochaOptions: ['--timeout=15000', '--require', 'core/server/overrides', '--exit'],
171-
excludes: ['core/client', 'core/server/built']
172-
}
173-
174-
}
175-
},
176-
177145
bgShell: {
178146
client: {
179147
cmd: function () {
@@ -368,7 +336,7 @@ const configureGrunt = function (grunt) {
368336
// * [Building assets](#building%20assets):
369337
// `grunt init`, `grunt` & `grunt prod` or live reload with `grunt dev`
370338
// * [Testing](#testing):
371-
// `grunt validate`, the `grunt test-*` sub-tasks or generate a coverage report with `grunt coverage`.
339+
// `grunt validate`, the `grunt test-*` sub-tasks.
372340

373341
// ### Help
374342
// Run `grunt help` on the commandline to get a print out of the available tasks and details of
@@ -504,7 +472,6 @@ const configureGrunt = function (grunt) {
504472
// Unit tests are run with [mocha](http://mochajs.org/) using
505473
// [should](https://github.com/visionmedia/should.js) to describe the tests in a highly readable style.
506474
// Unit tests do **not** touch the database.
507-
// A coverage report can be generated for these tests using the `grunt test-coverage` task.
508475
grunt.registerTask('test-unit', 'Run unit tests (mocha)',
509476
['test-setup', 'mochacli:unit']
510477
);
@@ -517,16 +484,6 @@ const configureGrunt = function (grunt) {
517484
['test-setup', 'mochacli:acceptance']
518485
);
519486

520-
// ### Coverage
521-
// `grunt coverage` will generate a report for the code coverage.
522-
grunt.registerTask('coverage', 'Generate unit tests coverage report',
523-
['test-setup', 'mocha_istanbul:coverage']
524-
);
525-
526-
grunt.registerTask('coverage-all', 'Generate full coverage report',
527-
['test-setup', 'mocha_istanbul:coverage_all']
528-
);
529-
530487
// #### Master Warning *(Utility Task)*
531488
// Warns git users not ot use the `master` branch in production.
532489
// `master` is an unstable branch and shouldn't be used in production as you run the risk of ending up with a

package.json

-2
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,9 @@
133133
"grunt-cssnano": "2.1.0",
134134
"grunt-express-server": "0.5.4",
135135
"grunt-mocha-cli": "4.0.0",
136-
"grunt-mocha-istanbul": "5.0.2",
137136
"grunt-shell": "3.0.1",
138137
"grunt-subgrunt": "1.3.0",
139138
"grunt-update-submodules": "0.4.1",
140-
"istanbul": "0.4.5",
141139
"matchdep": "2.0.0",
142140
"mocha": "5.2.0",
143141
"mock-knex": "0.4.3",

yarn.lock

+17-79
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,6 @@ abbrev@1:
130130
version "1.1.1"
131131
resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8"
132132

133-
abbrev@1.0.x:
134-
version "1.0.9"
135-
resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.0.9.tgz#91b4792588a7738c25f35dd6f63752a2f8776135"
136-
137133
accepts@~1.3.5:
138134
version "1.3.5"
139135
resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.5.tgz#eb777df6011723a3b14e8a72c0805c8e86746bd2"
@@ -220,10 +216,6 @@ alphanum-sort@^1.0.1, alphanum-sort@^1.0.2:
220216
version "1.0.2"
221217
resolved "https://registry.yarnpkg.com/alphanum-sort/-/alphanum-sort-1.0.2.tgz#97a1119649b211ad33691d9f9f486a8ec9fbe0a3"
222218

223-
amdefine@>=0.0.4:
224-
version "1.0.1"
225-
resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5"
226-
227219
amperize@0.3.8:
228220
version "0.3.8"
229221
resolved "https://registry.yarnpkg.com/amperize/-/amperize-0.3.8.tgz#d928295ff5ca9bfa4afec24ed70e77382c3181a2"
@@ -424,7 +416,7 @@ async-limiter@~1.0.0:
424416
resolved "https://registry.yarnpkg.com/async-limiter/-/async-limiter-1.0.0.tgz#78faed8c3d074ab81f22b4e985d79e8738f720f8"
425417
integrity sha512-jp/uFnooOiO+L211eZOoSyzpOITMXx1rBITauYykG3BRYPu8h0UcxsPNB04RR5vo4Tyz3+ay17tR6JVf9qzYWg==
426418

427-
async@1.x, async@^1.4.0, async@^1.5.0, async@~1.5.2:
419+
async@^1.4.0, async@^1.5.0, async@~1.5.2:
428420
version "1.5.2"
429421
resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a"
430422

@@ -1649,17 +1641,6 @@ escodegen@0.0.21:
16491641
optionalDependencies:
16501642
source-map ">= 0.1.2"
16511643

1652-
escodegen@1.8.x:
1653-
version "1.8.1"
1654-
resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.8.1.tgz#5a5b53af4693110bebb0867aa3430dd3b70a1018"
1655-
dependencies:
1656-
esprima "^2.7.1"
1657-
estraverse "^1.9.1"
1658-
esutils "^2.0.2"
1659-
optionator "^0.8.1"
1660-
optionalDependencies:
1661-
source-map "~0.2.0"
1662-
16631644
escodegen@^1.11.0, escodegen@^1.8.1:
16641645
version "1.11.0"
16651646
resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.11.0.tgz#b27a9389481d5bfd5bec76f7bb1eb3f8f4556589"
@@ -1821,7 +1802,7 @@ esprima@1.2.2:
18211802
version "1.2.2"
18221803
resolved "https://registry.yarnpkg.com/esprima/-/esprima-1.2.2.tgz#76a0fd66fcfe154fd292667dc264019750b1657b"
18231804

1824-
esprima@2.7.x, esprima@^2.6.0, esprima@^2.7.1:
1805+
esprima@^2.6.0:
18251806
version "2.7.3"
18261807
resolved "https://registry.yarnpkg.com/esprima/-/esprima-2.7.3.tgz#96e3b70d5779f6ad49cd032673d1c312767ba581"
18271808

@@ -1845,10 +1826,6 @@ esrecurse@^4.1.0:
18451826
dependencies:
18461827
estraverse "^4.1.0"
18471828

1848-
estraverse@^1.9.1:
1849-
version "1.9.3"
1850-
resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-1.9.3.tgz#af67f2dc922582415950926091a4005d29c9bb44"
1851-
18521829
estraverse@^4.0.0, estraverse@^4.1.0, estraverse@^4.1.1, estraverse@^4.2.0:
18531830
version "4.2.0"
18541831
resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.2.0.tgz#0dee3fed31fcd469618ce7342099fc1afa0bdb13"
@@ -2451,7 +2428,7 @@ github-from-package@0.0.0:
24512428
version "0.0.0"
24522429
resolved "https://registry.yarnpkg.com/github-from-package/-/github-from-package-0.0.0.tgz#97fb5d96bfde8973313f20e8288ef9a167fa64ce"
24532430

2454-
glob@5.0.15, glob@^5.0.15, glob@~5.0.0:
2431+
glob@5.0.15, glob@~5.0.0:
24552432
version "5.0.15"
24562433
resolved "https://registry.yarnpkg.com/glob/-/glob-5.0.15.tgz#1bc936b9e02f4a603fcc222ecf7633d30b8b93b1"
24572434
dependencies:
@@ -2706,10 +2683,6 @@ grunt-mocha-cli@4.0.0:
27062683
dependencies:
27072684
mocha "^4.0.0"
27082685

2709-
grunt-mocha-istanbul@5.0.2:
2710-
version "5.0.2"
2711-
resolved "https://registry.yarnpkg.com/grunt-mocha-istanbul/-/grunt-mocha-istanbul-5.0.2.tgz#23929a8b3f45a66c5fab1f6146e62b58418b7882"
2712-
27132686
grunt-shell@3.0.1:
27142687
version "3.0.1"
27152688
resolved "https://registry.yarnpkg.com/grunt-shell/-/grunt-shell-3.0.1.tgz#24e783901543c7269980d534902bedfb94e7ec9f"
@@ -2789,16 +2762,6 @@ handlebars@4.0.13:
27892762
optionalDependencies:
27902763
uglify-js "^3.1.4"
27912764

2792-
handlebars@^4.0.1:
2793-
version "4.1.0"
2794-
resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.1.0.tgz#0d6a6f34ff1f63cecec8423aa4169827bf787c3a"
2795-
dependencies:
2796-
async "^2.5.0"
2797-
optimist "^0.6.1"
2798-
source-map "^0.6.1"
2799-
optionalDependencies:
2800-
uglify-js "^3.1.4"
2801-
28022765
har-schema@^2.0.0:
28032766
version "2.0.0"
28042767
resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-2.0.0.tgz#a94c2224ebcac04782a0d9035521f24735b7ec92"
@@ -3339,25 +3302,6 @@ isstream@~0.1.2:
33393302
version "0.1.2"
33403303
resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a"
33413304

3342-
istanbul@0.4.5:
3343-
version "0.4.5"
3344-
resolved "https://registry.yarnpkg.com/istanbul/-/istanbul-0.4.5.tgz#65c7d73d4c4da84d4f3ac310b918fb0b8033733b"
3345-
dependencies:
3346-
abbrev "1.0.x"
3347-
async "1.x"
3348-
escodegen "1.8.x"
3349-
esprima "2.7.x"
3350-
glob "^5.0.15"
3351-
handlebars "^4.0.1"
3352-
js-yaml "3.x"
3353-
mkdirp "0.5.x"
3354-
nopt "3.x"
3355-
once "1.x"
3356-
resolve "1.1.x"
3357-
supports-color "^3.1.0"
3358-
which "^1.1.1"
3359-
wordwrap "^1.0.0"
3360-
33613305
isurl@^1.0.0-alpha5:
33623306
version "1.0.0"
33633307
resolved "https://registry.yarnpkg.com/isurl/-/isurl-1.0.0.tgz#b27f4f49f3cdaa3ea44a0a5b7f3462e6edc39d67"
@@ -3410,7 +3354,7 @@ js-tokens@^4.0.0:
34103354
version "4.0.0"
34113355
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499"
34123356

3413-
js-yaml@3.12.1, js-yaml@3.x, js-yaml@^3.12.0, js-yaml@^3.9.1:
3357+
js-yaml@3.12.1, js-yaml@^3.12.0, js-yaml@^3.9.1:
34143358
version "3.12.1"
34153359
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.12.1.tgz#295c8632a18a23e054cf5c9d3cecafe678167600"
34163360
dependencies:
@@ -4140,7 +4084,7 @@ mkdirp@0.5.0:
41404084
dependencies:
41414085
minimist "0.0.8"
41424086

4143-
mkdirp@0.5.1, mkdirp@0.5.x, "mkdirp@>=0.5 0", mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@~0.5.0, mkdirp@~0.5.1:
4087+
mkdirp@0.5.1, "mkdirp@>=0.5 0", mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@~0.5.0, mkdirp@~0.5.1:
41444088
version "0.5.1"
41454089
resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903"
41464090
dependencies:
@@ -4461,7 +4405,7 @@ noop-logger@^0.1.1:
44614405
version "0.1.1"
44624406
resolved "https://registry.yarnpkg.com/noop-logger/-/noop-logger-0.1.1.tgz#94a2b1633c4f1317553007d8966fd0e841b6a4c2"
44634407

4464-
"nopt@2 || 3", nopt@3.x, nopt@~3.0.1, nopt@~3.0.6:
4408+
"nopt@2 || 3", nopt@~3.0.1, nopt@~3.0.6:
44654409
version "3.0.6"
44664410
resolved "https://registry.yarnpkg.com/nopt/-/nopt-3.0.6.tgz#c6465dbf08abcd4db359317f79ac68a646b28ff9"
44674411
dependencies:
@@ -4629,7 +4573,7 @@ on-headers@~1.0.1:
46294573
version "1.0.1"
46304574
resolved "https://registry.yarnpkg.com/on-headers/-/on-headers-1.0.1.tgz#928f5d0f470d49342651ea6794b0857c100693f7"
46314575

4632-
once@1.x, once@^1.3.0, once@^1.3.1, once@^1.4.0:
4576+
once@^1.3.0, once@^1.3.1, once@^1.4.0:
46334577
version "1.4.0"
46344578
resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1"
46354579
dependencies:
@@ -5523,16 +5467,16 @@ resolve-url@^0.2.1:
55235467
version "0.2.1"
55245468
resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a"
55255469

5526-
resolve@1.1.x, resolve@~1.1.0:
5527-
version "1.1.7"
5528-
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b"
5529-
55305470
resolve@^1.1.6, resolve@^1.1.7, resolve@^1.4.0, resolve@^1.9.0:
55315471
version "1.10.0"
55325472
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.10.0.tgz#3bdaaeaf45cc07f375656dfd2e54ed0810b101ba"
55335473
dependencies:
55345474
path-parse "^1.0.6"
55355475

5476+
resolve@~1.1.0:
5477+
version "1.1.7"
5478+
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b"
5479+
55365480
resolve@~1.8.1:
55375481
version "1.8.1"
55385482
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.8.1.tgz#82f1ec19a423ac1fbd080b0bab06ba36e84a7a26"
@@ -5940,12 +5884,6 @@ source-map@^0.6.1, source-map@~0.6.1:
59405884
version "0.6.1"
59415885
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263"
59425886

5943-
source-map@~0.2.0:
5944-
version "0.2.0"
5945-
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.2.0.tgz#dab73fbcfc2ba819b4de03bd6f6eaa48164b3f9d"
5946-
dependencies:
5947-
amdefine ">=0.0.4"
5948-
59495887
spdx-correct@^3.0.0:
59505888
version "3.1.0"
59515889
resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.1.0.tgz#fb83e504445268f154b074e218c87c003cd31df4"
@@ -6183,7 +6121,7 @@ supports-color@^2.0.0:
61836121
version "2.0.0"
61846122
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7"
61856123

6186-
supports-color@^3.1.0, supports-color@^3.2.3:
6124+
supports-color@^3.2.3:
61876125
version "3.2.3"
61886126
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-3.2.3.tgz#65ac0504b3954171d8a64946b2ae3cbb8a5f54f6"
61896127
dependencies:
@@ -6662,7 +6600,7 @@ which-pm-runs@^1.0.0:
66626600
version "1.0.0"
66636601
resolved "https://registry.yarnpkg.com/which-pm-runs/-/which-pm-runs-1.0.0.tgz#670b3afbc552e0b55df6b7780ca74615f23ad1cb"
66646602

6665-
which@1, which@^1.1.1, which@^1.2.14, which@^1.2.9, which@~1.3.0:
6603+
which@1, which@^1.2.14, which@^1.2.9, which@~1.3.0:
66666604
version "1.3.1"
66676605
resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a"
66686606
dependencies:
@@ -6678,14 +6616,14 @@ window-size@^0.1.4:
66786616
version "0.1.4"
66796617
resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.1.4.tgz#f8e1aa1ee5a53ec5bf151ffa09742a6ad7697876"
66806618

6681-
wordwrap@^1.0.0, wordwrap@~1.0.0:
6682-
version "1.0.0"
6683-
resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb"
6684-
66856619
wordwrap@~0.0.2:
66866620
version "0.0.3"
66876621
resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.3.tgz#a3d5da6cd5c0bc0008d37234bbaf1bed63059107"
66886622

6623+
wordwrap@~1.0.0:
6624+
version "1.0.0"
6625+
resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb"
6626+
66896627
wrap-ansi@^2.0.0:
66906628
version "2.1.0"
66916629
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-2.1.0.tgz#d8fc3d284dd05794fe84973caecdd1cf824fdd85"

0 commit comments

Comments
 (0)