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

badges / shields / 21058825739
98%

Build:
DEFAULT BRANCH: master
Ran 16 Jan 2026 07:26AM UTC
Jobs 1
Files 664
Run time 1min
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

11 Jan 2026 07:32PM UTC coverage: 98.138% (+0.01%) from 98.128%
21058825739

push

github

web-flow
Improve our approach for testing auth (part 2) - basicAuth (#9983)

* improve stackexchange auth testing

Change auth tests to include all shields of the base class.
The code is formated to be used in more general cases and increases code reuseability.

* Remove dummy auth test

We already test all existing classes, no need for a dummy

* Add getBadgeExampleCall to test-helpers

Add getBadgeExampleCall to extract the first OpenAPI example then reformat it for service invoke function.

* Use getBadgeExampleCall in stackexchange-base tests

* Fix getBadgeExampleCall Errors

* Add testAuth to test-helpers

Add the testAuth function which tests auth of a service (badge) using a provided dummy response.

* Refactor stackexchange-base.spec.js to use testAuth from test-helpers

* Split stackexchange-base.spec into per service test file

* Add all auth methods to testAuth

Add all auth methods used to testAuth to be generic and used by all services.
Add helper functions to make testAuth more readable

* Handle non-default bearer and api headers

* Add discord.spec.js as first attempt for bearer auth

* Fix basic auth user

* Add dynamic authorizedOrigins

* Add header optional argument

* Add obs as basicAuth example

* Use apiHeaderKey and bearerHeaderKey function params

Use apiHeaderKey & bearerHeaderKey as function params rather then extracting them with regex from function strings.

Those options are now part of an options object param joined with the contentType that replaces header.

header was originaly added for setting content type of the reply, so it makes more sense to directly set the content type

* Remove old comment

* Allow any pass & user key for QueryStringAuth

Before this commit the QueryStringAuth would only work for the key of stackexchange.
This commit makes the testAuth function generic and allows passing user and pass keys.

* Add auth test for PepyDownloads

* Fix wrong header for jwt login

Might set wrong header for jwt login requ... (continued)

5906 of 6163 branches covered (95.83%)

64 of 64 new or added lines in 8 files covered. (100.0%)

9 existing lines in 1 file now uncovered.

49638 of 50580 relevant lines covered (98.14%)

134.94 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
9
89.02
-10.98% services/npm-stat/npm-stat-downloads.service.js
Jobs
ID Job ID Ran Files Coverage
1 21058825739.1 16 Jan 2026 07:26AM UTC 664
98.14
GitHub Action Run
Source Files on build 21058825739
  • Tree
  • List 664
  • Changed 9
  • Source Changed 7
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #21058825739
  • fcfbf895 on github
  • Prev Build on master (#20844336858)
  • Next Build on master (#21090573803)
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