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

valkyrjaio / project-template-java / 30721326014
100%

Build:
DEFAULT BRANCH: 26.x
Ran 01 Aug 2026 10:29PM UTC
Jobs 1
Files 1
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

01 Aug 2026 10:28PM UTC coverage: 100.0%. Remained the same
30721326014

push

github

web-flow
[Version] test: Assert the info constants by format instead of exact values (#55)

# Description

The release workflow rewrites `VERSION` and `VERSION_BUILD_DATE_TIME` on
every release. The test asserted only that each constant is not empty,
which cannot catch a value written in the wrong format.

The TypeScript template showed what the weak assertion misses. Its test
compared the exact values `1.0.0` and `January 1 2025 00:00:00 MST`, so
the first release broke it and blocked every open pull request. This
change does not copy that mistake — it asserts a format, so a release
can never break the test, and a malformed value still fails it.

Each test now matches the exact format that the release workflow writes:

- `VERSION` matches `\d+\.\d+\.\d+`.
- `VERSION_BUILD_DATE_TIME` matches `[A-Z][a-z]+ \d{1,2} \d{4}
\d{2}:\d{2}:\d{2} MST`, the output of `date '+%B %-d %Y %T MST'` in
`_get-version-for-release.yml`.

## Types of changes

- [X] Improvement _(non-breaking change which improves code)_
- [ ] Bug fix _(non-breaking change which fixes an issue)_
- [ ] New feature _(non-breaking change which adds functionality)_
- [ ] Deprecation _(breaking change which removes functionality)_
- [ ] Breaking change _(fix or feature that would cause existing
functionality to change)_
- [ ] Documentation improvement


## Changes

-
**`.github/ci/junit/src/test/java/io/valkyrja/tests/unit/template/constant/TemplateInfoTest.java`**
— replaced the two `assertNotEquals("", …)` assertions with
`String.matches` on the version format and the build-date-time format,
and renamed each test method for what it now asserts. Each assertion
carries a failure message that prints the offending value.

## Sibling pull requests

This change is made in every affected language port in the same batch.

- PHP — https://github.com/valkyrjaio/project-template-php/pull/176
- Go — https://github.com/valkyrjaio/project-template-go/pull/32
- Python — https://github.com/valkyrjaio/project-template-... (continued)

0 of 0 relevant lines covered (NaN%)

0.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 30721326014.1 01 Aug 2026 10:29PM UTC 1
100.0
GitHub Action Run
Source Files on build 30721326014
  • Tree
  • List 1
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #30721326014
  • d033cf7c on github
  • Prev Build on 26.x (#30718504500)
  • Next Build on 26.x (#30723566084)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc