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

PayU / prometheus-api-metrics / 850
76%

Build:
DEFAULT BRANCH: master
Ran 21 Aug 2020 09:30PM UTC
Jobs 1
Files 5
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

pending completion
850

cron

travis-ci

web-flow
chore: upgrade prom-client from 11.x to 12.x and update tests. (#43)

* chore: upgrade prom-client from 11 to 12.

Signed-off-by: tarlety@gmail.com <tarlety@gmail.com>

* chore: drop Node.js 6.x and 8.x.

Reason: prom-client 12.0.0 dropped support for end-of-life Node.js versions 6.x and 8.x.
Reference: https://github.com/siimon/prom-client/releases/tag/v12.0.0

Signed-off-by: tarlety@gmail.com <tarlety@gmail.com>

* fix: npm test fail at 'override the default path'.

Symptom:
- ctx.body is not equal to Prometheus.register.metrics().

Root cause:
- since prom-client 12, metrics are collected on scrape of metrics endpoint, not on an interval.
- metrics value change over time.

Solution:
- compare only metric names and lables, not the value.

Signed-off-by: tarlety@gmail.com <tarlety@gmail.com>

* fix: npm test fail due to 'Cannot add the default metrics twice to the same registry'

And fix lint error.

Signed-off-by: tarlety@gmail.com <tarlety@gmail.com>

* test: refactor middleware integration test based on server/configuration.

Refactor 3 tests for express/koa integration test:
1. when start up
2. exclude routes
3. unique metric names

Signed-off-by: tarlety@gmail.com <tarlety@gmail.com>

* test: increase test coverage by removing unused branches.

Signed-off-by: tarlety@gmail.com <tarlety@gmail.com>

* refactor: destructure for more readiblity.

* chore: add Node.js 14 for travis CI.

Co-authored-by: Kobi Carmeli <kobi.carmeli@gmail.com>

159 of 160 branches covered (99.38%)

Branch coverage included in aggregate %.

199 of 199 relevant lines covered (100.0%)

28.91 hits per line

Jobs
ID Job ID Ran Files Coverage
4 850.4 21 Aug 2020 09:30PM UTC 0
99.72
Travis Job 850.4
Source Files on build 850
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #850
  • 26dea985 on github
  • Prev Build on master (#848)
  • Next Build on master (#851)
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