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

apiaryio / dredd / 3167
96%
master: 92%

Build:
Build:
LAST BUILD BRANCH: honzajavorek/fix-node-appveyor
DEFAULT BRANCH: master
Ran 22 Mar 2017 05:48PM UTC
Jobs 2
Files 0
Run time 3s
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
3167

push

travis-ci

honzajavorek
fix: Test and fix the Content-Length calculation behavior

Dredd should prevent user errors by always calculating the Content-Length
header value. If it differs from what user provided, it should warn
and use the calculated value anyway. There is no reason for user to
override the calculated value and having the value out of sync with
body size just brings all sorts of strange behavior.

Also, Dredd needs to calculate the value before the 'request' library
does it, because

1) it needs to ensure the behavior described above,
2) setting Content-Length to zero if there's no body seems to be like
   a good thing to do (and 'request' doesn't do it),
3) the added header needs to be propagated back to the transaction
   object so Dredd is transparent about what was actually sent to the
   server under test

Close https://github.com/apiaryio/dredd/issues/751
Close https://github.com/apiaryio/dredd/issues/408

20 of 20 new or added lines in 1 file covered. (100.0%)

1911 of 2035 relevant lines covered (93.91%)

126.24 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
src/which.coffee
2
100.0
src/reporters/nyan-reporter.coffee
3
100.0
src/dredd.coffee
8
100.0
src/hooks-worker-client.coffee
24
100.0
src/dredd-command.coffee
Jobs
ID Job ID Ran Files Coverage
1 3167.1 22 Mar 2017 05:48PM UTC 0
93.91
Travis Job 3167.1
2 3167.2 22 Mar 2017 05:49PM UTC 0
93.91
Travis Job 3167.2
Source Files on build 3167
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3167
  • 81ad39a1 on github
  • Prev Build on honzajavorek/proxy (#3133)
  • Next Build on honzajavorek/proxy (#3168)
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

© 2025 Coveralls, Inc