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

apiaryio / dredd / 3168
96%
master: 92%

Build:
Build:
LAST BUILD BRANCH: honzajavorek/fix-node-appveyor
DEFAULT BRANCH: master
Ran 23 Mar 2017 11:04AM UTC
Jobs 2
Files 0
Run time 2s
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
3168

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%)

1952 of 2036 relevant lines covered (95.87%)

243.65 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
src/interactive-config.coffee
1
100.0
src/reporters/apiary-reporter.coffee
10
100.0
src/transaction-runner.coffee
Jobs
ID Job ID Ran Files Coverage
1 3168.1 23 Mar 2017 11:04AM UTC 0
95.87
Travis Job 3168.1
2 3168.2 23 Mar 2017 11:04AM UTC 0
95.87
Travis Job 3168.2
Source Files on build 3168
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3168
  • c037d520 on github
  • Prev Build on honzajavorek/proxy (#3167)
  • Next Build on honzajavorek/proxy (#3170)
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