Fake and control time in Kotlin – freeze, tick, and shift for reliable and reproducible tests.

datetime fake-times kotlin kotlin-library library mock mocking testing testing-library
2 Open Issues Need Help Last updated: Aug 6, 2025

Open Issues Need Help

View All on GitHub
Software Development Testing Libraries

AI Summary: Implement a new `FakeDateTime.adjustable(base: Instant)` function in Kotlin that allows setting a base time and shifting it by a duration. This function should initially support only `Instant` and `unixTime` and include unit tests and updated documentation.

Complexity: 3/5
enhancement help wanted good first issue feature

Fake and control time in Kotlin – freeze, tick, and shift for reliable and reproducible tests.

Kotlin
#datetime#fake-times#kotlin#kotlin-library#library#mock#mocking#testing#testing-library
Software Development Testing Libraries

AI Summary: Implement a `FakeDateTime.ticked(...)` function in Kotlin that simulates a counter-based clock, advancing time by a specified duration with each call to `instant()` or `unixTime()`. This initially only needs to support `Instant` and `unixTime()`, requiring the creation of the function, implementation of the time advancement logic, unit tests, sample code, and updated documentation.

Complexity: 3/5
enhancement help wanted good first issue feature

Fake and control time in Kotlin – freeze, tick, and shift for reliable and reproducible tests.

Kotlin
#datetime#fake-times#kotlin#kotlin-library#library#mock#mocking#testing#testing-library