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

MediaComem / biopocket-backend / 150 / 2
92%
master: 92%

Build:
Build:
LAST BUILD BRANCH: story-2-user-registration
DEFAULT BRANCH: master
Ran 31 May 2018 12:00PM UTC
Files 67
Run time 8s
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

31 May 2018 11:57AM UTC coverage: 92.55% (+0.3%) from 92.28%
NODE_ENV=test SESSION_SECRET=secret

push

travis-ci

Tazaf
Add an API route to list actions

Add a new `/actions` route to the API. It allows users to list
all available actions of the BioPocket application, without requiring any
authentification. This route implements pagination and inclusion.

Add several validations to the project : one to validate that
a value is an positive integer, one to validate that a value is included
in a whitelist of values, and the last one to validate pagination params
such as offset and limit.
Add tests for the last two validators.

Update the sample-data script to include a dozen themes and hundred
actions related to those themes.

Refactored ApiError implementation. There is now a dedicated file for this
class. Plus it can now contains specific headers that will be added to the
response's headers.
A new badRequest error has been added to the `errors.js` file.

Updated the documentation to include the new API route.
Add new documentation type: `validationError`. It represents validation
errors returned by the routes. It should contain all properties that an
error object can have, regardless of the route.
Also add documentation type for `Action` and `Theme`.

Add two new documentation traits.
`paginatedResource` that documents everything related to pagination in
routes.
`resourceWithInclusion` that documents everything related to resources
that can include other resources in their response objects.

Update previous documentation to include the new types and/or traits.

Add a `.gitattributes` file to force using LF instead of CRLF in all
files.

STORY: TG-52

453 of 558 branches covered (81.18%)

Branch coverage included in aggregate %.

1957 of 2046 relevant lines covered (95.65%)

41.3 hits per line

Source Files on job 150.2 (NODE_ENV=test SESSION_SECRET=secret)
  • Tree
  • List 0
  • Changed 20
  • Source Changed 10
  • Coverage Changed 18
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 142
  • Travis Job 150.2
  • 4125ce68 on github
  • Prev Job for NODE_ENV=test SESSION_SECRET=secret on add-actions-route (#149.2)
  • Next Job for NODE_ENV=test SESSION_SECRET=secret on add-actions-route (#158.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