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

palcarazm / bs-darkmode-toggle / 23998134099
98%
v1: 98%

Build:
Build:
LAST BUILD BRANCH: dependabot/npm_and_yarn/docs/version-updates-8b302c2185
DEFAULT BRANCH: v1
Ran 05 Apr 2026 08:53AM UTC
Jobs 2
Files 7
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

05 Apr 2026 08:46AM UTC coverage: 98.697%. Remained the same
23998134099

push

github

palcarazm
refactor: restructure test app and Cypress E2E tests for better maintainability

What has been done:
- Consolidate duplicate HTML files into single test-app.html with dynamic
  script loader based on URL parameter
- Replace legacy test architecture with modular structure under test/app,
  test/common, test/loaders, and test/runners directories
- Remove deprecated BsDarkmodeToggleModel and TestAppModel from support
- Create new Cypress page objects (TestAppPage, DarkmodeToggleComponent)
- Add Interfaces helper to reduce code duplication across test files
- Reorganize Cypress E2E tests into initialization/ and methods/ directories
- Simplify test logic by extracting common checks into reusable module
- Fix checkRoot implementation using proper Cypress promise chaining
- Standardize code formatting with tabWidth 4 across all files

Why has been done:
- Previous architecture had tight coupling between test app and Cypress
  tests, making changes difficult and error-prone
- Duplicate HTML files for ECMAS and jQuery interfaces violated DRY principle
- Test runner logic was duplicated between test app and Cypress support files
- Cypress tests contained repetitive code blocks for each interface and check
- Asynchronous handling in checkRoot was causing timeout issues due to
  improper Cypress command chaining
- Refactoring improves separation of concerns, reduces code duplication
  by ~60%, and makes adding new test cases significantly easier
- Page Object pattern provides cleaner, more maintainable test code

131 of 135 branches covered (97.04%)

Branch coverage included in aggregate %.

172 of 172 relevant lines covered (100.0%)

90.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 coverage-report-22.x - 23998134099.1 05 Apr 2026 08:53AM UTC 14
99.18
GitHub Action Run
2 coverage-report-24.x - 23998134099.2 05 Apr 2026 08:53AM UTC 14
99.18
GitHub Action Run
Source Files on build 23998134099
  • Tree
  • List 7
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #23998134099
  • e9057bdd on github
  • Prev Build on develop/1.0.0 (#23984194756)
  • Next Build on develop/1.0.0 (#23999346988)
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