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

ericblade / mws-advanced / 144 / 2
88%
master: 88%

Build:
Build:
LAST BUILD BRANCH: typescript
DEFAULT BRANCH: master
Ran 13 May 2018 05:04AM UTC
Files 33
Run time 1s
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

13 May 2018 05:02AM UTC coverage: 83.773% (-0.03%) from 83.802%
144.2

push

travis-ci

ericblade
begin separation of parsers from fetch logic

- add lib/parsers/marketplaceData, which is called by getMarketplaces to
  perform the parsing work.
- this allows for separate testing of parsers from fetchers, allowing...
- add test/mock/ListMarketplaceParticipations.json, which is used by...
- new test section "Parsers". The first one reads the mock data provided in
  this commit, and feeds it to lib/parsers/marketplaceData, testing it in
  exactly the same way that the live API is tested.
- with some additional cleanup and effort, it should be possible to get
  mocked data from MWS's PHP code, or saved via live calls (make sure you
  sanitize any sensitive information from it), and provide it either via
  file system reads, or a mocked MWS server.
- this commit also makes first official use of the "parseEndpoint" function
  which returns a function that calls callEndpoint, then calls the provided
  argument function with the return from callEndpoint.  This looks like:
  parseEndpoint('MwsApiName')(parserFunction)
- I'm going to admit that I'm not 100% positive that there is good use for
  this to return a function, only that it felt like there was a really good
  reason as to why I might want it to do it like that for future expansion.

182 of 226 branches covered (80.53%)

Branch coverage included in aggregate %.

453 of 532 relevant lines covered (85.15%)

90.86 hits per line

Source Files on job 144.2
  • Tree
  • List 0
  • Changed 6
  • Source Changed 4
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 92
  • Travis Job 144.2
  • abe01bec on github
  • Prev Job for on develop (#137.2)
  • Next Job for on develop (#150.2)
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