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

pkryger / difftastic.el / 12594498745 / 6
100%
main: 100%

Build:
DEFAULT BRANCH: main
Ran 03 Jan 2025 07:50AM UTC
Files 2
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

01 Jan 2025 02:57PM UTC coverage: 80.781%. Remained the same
12594498745.6

push

github

pkryger
[test] Ensure faces have meaningful foreground/background for noninteractive tests

When running tests noninteractive (for example when in CI, or by calling "make
test") Emacs doesn't have faces initialized.  This causes tests to fail, as
every colour substitution is to "unspecified-fg" or "unspecified-bg".
Apparently, this is a featrue, see
https://lists.gnu.org/archive/html/help-gnu-emacs/2024-02/msg00095.html.

This change will ensure the faces used in tests have some distinct values when
running noninteractively.

It also turns out that with a current implementation Emacs-28 highlight faces
are not applied for diffs.  Quick investigation shows that
`difftastic--ansi-color-add-background`
called twice: first time with `ansi-color-underline`, second time with
`(:foregorund "something")`.  Unfortunately, the former is used to detect if
the given face should be updated by `difftastic` to be a highlight
face.  Marking tests as failing for time being, when there's a demand will
revisit if it's worth the effort.

538 of 666 relevant lines covered (80.78%)

144.78 hits per line

Source Files on job macos-latest-emacs-29.4 - 12594498745.6
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 12594498745
  • 38fc1db2 on github
  • Prev Job for on main (#12572046528.10)
  • Next Job for on main (#12608731581.3)
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