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

IJHack / QtPass / 25195039303
55%

Build:
DEFAULT BRANCH: main
Ran 30 Apr 2026 11:53PM UTC
Jobs 1
Files 72
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

30 Apr 2026 11:48PM UTC coverage: 28.015%. Remained the same
25195039303

push

github

web-flow
test(locale): use QCOMPARE / QCOMPARE_NE for cleaner diagnostics (#1367)

* Apply suggested fix to tests/auto/locale/tst_locale.cpp from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Apply suggested fix to tests/auto/locale/tst_locale.cpp from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* test(locale): qInfo() the locale name before each loadIsIdempotent step

Switching from QVERIFY2 with locale-named messages to QCOMPARE/
QCOMPARE_NE (parent commit) lost the locale identification on
translation-mismatch failures. loadIsIdempotent isn't data-driven, so
when QCOMPARE inside a lambda fires, QtTest reports from the lambda's
line — without saying which locale was being checked.

Add a `qInfo("loadAndCheck(%s)", locale)` (and equivalent for the
unknown-locale lambda) before each call. QtTest interleaves QINFO
output with PASS/FAIL lines, so the most-recent QINFO above any
failure pinpoints the locale at fault.

Sample output (passing run):

  QINFO  : TestLocale::loadIsIdempotent() loadAndCheck(ar_MA)
  QINFO  : TestLocale::loadIsIdempotent() loadUnknownAndCheckCleared(tlh_KX)
  QINFO  : TestLocale::loadIsIdempotent() loadAndCheck(nl_NL)
  QINFO  : TestLocale::loadIsIdempotent() loadAndCheck(en_US)
  QINFO  : TestLocale::loadIsIdempotent() loadAndCheck(fa_IR)
  PASS   : TestLocale::loadIsIdempotent()

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* fix(test): replace QCOMPARE_NE with QVERIFY for Qt 5.15 compatibility

QCOMPARE_NE was added in Qt 6.4. Qt 5.15 (which this suite still
runs on per CLAUDE.md and the ubuntu-latest 5.15 build matrix entry)
fails to compile with:

  error: 'QCOMPARE_NE' was not declared in this scope; did you mean
  'QCOMPARE'?

QVERIFY(got != staleLTR) works on both Qt majors and the qInfo()
above the assertion already names the locale, so the only thing
los... (continued)

1854 of 6618 relevant lines covered (28.01%)

27.1 hits per line

Jobs
ID Job ID Ran Files Coverage
1 25195039303.1 30 Apr 2026 11:53PM UTC 72
28.01
GitHub Action Run
Source Files on build 25195039303
  • Tree
  • List 72
  • Changed 2
  • Source Changed 2
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25195039303
  • d2394e96 on github
  • Prev Build on main (#25193439988)
  • Next Build on main (#25222422779)
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