Show HN: FaKeTime – A Kotlin library for easy fake time control in tests
2 matcha4smiley 0 8/6/2025, 5:21:30 PM github.com ↗
I created faKeTime, a small Kotlin library to make testing time-dependent code easier and more reliable.
Time-dependent tests often cause flaky failures. With faKeTime, you can:
Freeze time at a fixed instant (FakeDateTime.fixed(...))
Auto-advance time on each call (coming soon)
Manually adjust time (coming soon)
Currently JVM-only. Kotlin Multiplatform support is in the works.
Source and docs: https://github.com/matcha4smiley/faKeTime
I’m happy to hear feedback or contributions.
No comments yet