Do you know that Android Studio generates sample tests with an archaic framework?
A sample test in a new project - ExampleUnitTest.kt - uses the import annotation of the test method from jUnit4. The problem is that jUnit in version 4.x is no longer actively developed.
It only gets the necessary security fixes.
For comparison - the new version of the same framework, that is, jUnit5 has been with us since 2017.
5 years in software dev is an astronomical amount of time.
You can still find entries on the internet exclusively for the archaic version. It's time to put an end to it!
Here is a... mini-course introducing to jUnit5 in Kotlin, which will allow you to quickly jump into the new version of the testing framework.
It will come in handy even if you don't program for Android.
Bonus: I've also added a lesson on using jUnit4 and jUnit5 at the same time in the project - so that the migration to the new version is painless.
jUnit5 for Kotlin developers
Free introductory video course