• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

graphql / graphql-js / 2728
99%
master: 98%

Build:
Build:
LAST BUILD BRANCH: directives
DEFAULT BRANCH: master
Ran 06 Dec 2017 01:04AM UTC
Jobs 1
Files 173
Run time 7s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
2728

push

travis-ci

leebyron
Test: Missing subscription field should not be an "internal error"

A remaining issue with subscriptions is attempting to subscribe to a missing field. The existing implementation creates an internal error which is an improper blame since there is no possibility to fix it internally - it is an issue with the query.

For consistency with the same scenario for query/mutation operations, this simply returns nothing. I interpret the equivalent of "undefined" for a subscribe operation as an empty iteration.

Note: this will require spec changes, however spec changes are necessary either way to resolve the ambiguity of this exact scenario.

3897 of 4391 branches covered (88.75%)

14 of 14 new or added lines in 3 files covered. (100.0%)

9431 of 9543 relevant lines covered (98.83%)

1295.76 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
100.0
src/subscription/emptyAsyncIterator.js

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
src/__tests__/starWarsSchema.js
1
100.0
src/validation/rules/KnownArgumentNames.js
1
100.0
src/utilities/extendSchema.js
1
100.0
src/execution/__tests__/variables-test.js
1
100.0
src/type/__tests__/introspection-test.js
1
100.0
src/utilities/__tests__/assertValidName-test.js
1
100.0
src/utilities/__tests__/schemaPrinter-test.js
1
100.0
src/validation/__tests__/DefaultValuesOfCorrectType-test.js
2
100.0
src/utilities/astFromValue.js
2
100.0
src/language/parser.js
2
100.0
src/validation/rules/OverlappingFieldsCanBeMerged.js
2
100.0
src/utilities/__tests__/buildClientSchema-test.js
3
100.0
src/utilities/buildASTSchema.js
3
100.0
src/utilities/schemaPrinter.js
4
100.0
src/type/introspection.js
4
100.0
src/validation/rules/KnownDirectives.js
4
100.0
src/subscription/__tests__/subscribe-test.js
7
100.0
src/execution/execute.js
7
100.0
src/utilities/buildClientSchema.js
7
100.0
src/utilities/findBreakingChanges.js
10
100.0
src/execution/values.js
11
100.0
src/type/definition.js
11
100.0
src/type/__tests__/validation-test.js
Jobs
ID Job ID Ran Files Coverage
1 2728.1 06 Dec 2017 01:04AM UTC 0
98.83
Travis Job 2728.1
Source Files on build 2728
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2728
  • ab56b431 on github
  • Prev Build on missing-subscription-field (#2676)
  • Next Build on missing-subscription-field (#2757)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc