Skip to content

Testing framework for Doodle #40

Answered by pusolito
Krzyjan asked this question in Q&A
Discussion options

You must be logged in to vote

In general you should be able to write unit style tests with mocks (I recommend Mockk). There are some basic examples of this in the Calculator tutorial (repo).

You can fully mock your Application instance as well if you inject everything; which is the recommendation.

Unfortunately, there isn't a framework (as far as I know) that offers something like the fluent API of the JavaFX one you shared.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Krzyjan
Comment options

Answer selected by pusolito
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants