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

mbland / tomcat-servlet-testing-example / 6917297952
100%

Build:
DEFAULT BRANCH: main
Ran 19 Nov 2023 12:48AM UTC
Jobs 2
Files 4
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

19 Nov 2023 12:27AM UTC coverage: 100.0%. Remained the same
6917297952

push

github

mbland
Integrate Handlebars into frontend JavaScript

This required creating a new Rollup plugin to precompile the Handlebars
templates as part of the Vite build. I intend to break this plugin out
into a separate repository, which I may publish. I'm getting inspiration
for this plugin from:

- https://github.com/benjilegnard/rollup-plugin-handlebars
- https://github.com/mixmaxhq/rollup-plugin-handlebars-plus

This commit adds a new frontend/components directory, in which I've
added a new "Placeholder" component consisting of placeholder.js and
placeholder.hbs. It seems I'm heading in the direction of emulating
popular modern frameworks like React or Vue, but using Handlebars
instead. We'll see how this goes, as I'm about ready to add the
actual String Calculator details now.

As for why Handlebars, or even Tomcat, it's because I'm developing this
example for a specific team to whom I'm going to present it soon. These
are the technologies they're using. (I should add this to the README at
some point...)

The example project as a whole is becoming a bit of a Rube Goldberg
machine, but that's kind of the point. I want it to illustrate how to
structure and test a production system, but without requiring too much
time to learn this specific system. The actual business logic of the
String Calculator is secondary to showing how to design for testability
and how to implement a comprehensive testing strategy.

I like to think of it as trying to narrow the "imagination gap" between
what's possible and what folks are aware is possible.

5 of 5 branches covered (100.0%)

Branch coverage included in aggregate %.

24 of 24 new or added lines in 3 files covered. (100.0%)

47 of 47 relevant lines covered (100.0%)

1.19 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6917297952.1 19 Nov 2023 12:48AM UTC 0
100.0
GitHub Action Run
2 6917297952.2 19 Nov 2023 12:48AM UTC 0
100.0
GitHub Action Run
Source Files on build 6917297952
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #6917297952
  • 595f20bd on github
  • Prev Build on main (#6909850413)
  • Next Build on main (#6922109886)
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