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

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

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

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

82.61 hits per line

Jobs
ID Job ID Ran Files Coverage
1 150.1 (NODE_ENV=test SESSION_SECRET=secret) 31 May 2018 12:00PM UTC 0
92.55
Travis Job 150.1
2 150.2 (NODE_ENV=test SESSION_SECRET=secret) 31 May 2018 12:00PM UTC 0
92.55
Travis Job 150.2
Source Files on build 150
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #150
  • 4125ce68 on github
  • Prev Build on add-actions-route (#149)
  • Next Build on add-actions-route (#158)
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