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

kobotoolbox / kpi / 11940403833
82%
master: 76%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/actions-deps-2b1d353b35
DEFAULT BRANCH: master
Ran 20 Nov 2024 08:05PM UTC
Jobs 1
Files 608
Run time 2min
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

20 Nov 2024 07:29PM UTC coverage: 79.98% (+0.01%) from 79.97%
11940403833

push

github

web-flow
chore: remove in-browser mocha test environment (#5269)

### ๐Ÿ‘€ Preview steps

1. rebuild/run this branch as usual
1. ๐ŸŸข note that http://kf.kobo.local/browser_tests/ now redirects to
`/#/projects/home`

### ๐Ÿ’ญ Notes

Cleanup after:

- #5264

Removes the rest of `mocha` in favor of jest runner: remove
`"test-mocha-autobuild"` script, the defunct `/browser_tests/` page and
its dependencies.

#### Removals

- ๐Ÿงช **Remove `test-mocha-autobuild` and test/index.html**
> [#2890](https://github.com/kobotoolbox/kpi/issues/2890): In the past
would load the mocha test suite and would provide an easy way to debug
broken tests and write new ones.
  
I've used the browser-based runner and was hesitant to remove it in
[#5264](https://github.com/kobotoolbox/kpi/pull/5264). But, as others
pointed out, we don't need to keep mocha around for this, as Jest
supports both use cases.
  
1. For regular test-writing or debugging, like all the fixes in
[#5264](https://github.com/kobotoolbox/kpi/pull/5264), or re-running
tests on change, **use Jest's [watch
mode](https://jestjs.io/docs/cli#--watch)** (`npm run test-watch`). It's
pretty good.
2. For fixes like
[`8d5a6ff0`](https://github.com/kobotoolbox/kpi/commit/8d5a6ff05#diff-3cbd670915d20a7f56e4524cc3235c7ae),
where the console output might be misleading, or anywhere a step
debugger or REPL could save time, see [Jest's troubleshooting
page](https://jestjs.io/docs/troubleshooting#tests-are-failing-and-you-dont-know-why)
with steps to **connect Node/Chrome Devtools**.

- ๐ŸŒ **Remove
[`/browser_tests/`](https://kf.kobotoolbox.org/browser_tests)**
> [#2913](https://github.com/kobotoolbox/kpi/pull/2913) The tests could
also be used to help identify if a user experiences a bug specific to
their browser
  
Deploying a test runner to a production server in order to help with bug
triage is a nice idea. On the other hand, no one se... (continued)

5630 of 9091 branches covered (61.93%)

21545 of 26938 relevant lines covered (79.98%)

0.8 hits per line

Jobs
ID Job ID Ran Files Coverage
1 11940403833.1 20 Nov 2024 08:05PM UTC 0
79.98
Source Files on build 11940403833
Detailed source file information is not available for this build.
  • Back to Repo
  • dd3f7ad7 on github
  • Prev Build on main (#11940389211)
  • Next Build on main (#11940917895)
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