date

Why my date formatters test fails in CI and passes locally?

The issue For new Android project I decided to go with Github Actions as CI environment – we use Github across organization and some backend projects are already running in Github workflows, creating new project with is a good idea. I’ve prepared configuration using following tutorial: How-to Github Actions: Building your Android App I’ve recently …

Why my date formatters test fails in CI and passes locally? Read More »

Testing time-based code with Joda Time

In some systems you sometimes need to record date or timestamp of given action. Good example could be comments system, where each comment has timestamp: interface CommentsInteractor { fun createComment(content: String): CommentEntity}data class CommentEntity( val content: String, val timestamp: Long) In our experiment we will perform two test cases: comment created at given time should …

Testing time-based code with Joda Time Read More »