<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Jarosław</title>
    <description>The latest articles on DEV Community by Jarosław (@rozkminiacz).</description>
    <link>https://dev.to/rozkminiacz</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F644547%2Fdf99a70c-e4a0-47bb-9f93-8283f5452299.png</url>
      <title>DEV Community: Jarosław</title>
      <link>https://dev.to/rozkminiacz</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rozkminiacz"/>
    <language>en</language>
    <item>
      <title>Top articles on KotlinTesting (2022)</title>
      <dc:creator>Jarosław</dc:creator>
      <pubDate>Wed, 25 May 2022 08:42:07 +0000</pubDate>
      <link>https://dev.to/rozkminiacz/top-articles-on-kotlintesting-2022-3o38</link>
      <guid>https://dev.to/rozkminiacz/top-articles-on-kotlintesting-2022-3o38</guid>
      <description>&lt;h2&gt;
  
  
  1 Using Mockito in Kotlin projects
&lt;/h2&gt;

&lt;p&gt;Refactoring Java Mockito based test suite to Mockito-Kotlin DSL&lt;br&gt;
&lt;a href="https://kotlintesting.com/using-mockito-in-kotlin-projects/"&gt;https://kotlintesting.com/using-mockito-in-kotlin-projects&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  2 Don't mock static: test SLF4J Loggers with appenders
&lt;/h2&gt;

&lt;p&gt;Do you want to assert that SLF4J actually logged warn with proper message? Check this guide on how to mock logger in tests, in Kotlin and Java.&lt;br&gt;
&lt;a href="https://kotlintesting.com/mock-slf4j/"&gt;https://kotlintesting.com/mock-slf4j/&lt;br&gt;
&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  3 Mocking coroutines with MockK
&lt;/h2&gt;

&lt;p&gt;How to easily stub or mock suspend function in Kotlin? MockK is the solution. See MockK examples for mocking coroutines.&lt;br&gt;
&lt;a href="https://kotlintesting.com/mocking-suspend-with-mockk/"&gt;https://kotlintesting.com/mocking-suspend-with-mockk/&lt;br&gt;
&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  4 How to mock final classes in Kotlin with Mockito?
&lt;/h2&gt;

&lt;p&gt;Mockito cannot mock/spy because your class is final class? We can fix that.&lt;br&gt;
&lt;a href="https://kotlintesting.com/mock-final-in-kotlin/"&gt;https://kotlintesting.com/mock-final-in-kotlin/&lt;br&gt;
&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  5 Parameterized tests with Kotest
&lt;/h2&gt;

&lt;p&gt;Creating parameterized tests in Kotlin: data driven testing, collection inspections and generating test cases with FreeSpec.&lt;br&gt;
&lt;a href="https://kotlintesting.com/kotest-parameterized/"&gt;https://kotlintesting.com/kotest-parameterized/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>programming</category>
      <category>kotlin</category>
      <category>unittesting</category>
      <category>android</category>
    </item>
    <item>
      <title>JVM Testing Newsletter | July 2021</title>
      <dc:creator>Jarosław</dc:creator>
      <pubDate>Tue, 03 Aug 2021 17:09:00 +0000</pubDate>
      <link>https://dev.to/rozkminiacz/jvm-testing-newsletter-july-2021-4fp</link>
      <guid>https://dev.to/rozkminiacz/jvm-testing-newsletter-july-2021-4fp</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;What's new in JVM testing? Check July 2021 issue.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Articles &amp;amp; blogposts
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Hidden Perks of Unit Tests
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://www.egorand.dev/hidden-perks-of-unit-tests/"&gt;https://www.egorand.dev/hidden-perks-of-unit-tests/&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Where to write Android UI Tests (two articles)
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://proandroiddev.com/where-to-write-android-ui-tests-part-1-92cc9bf98c03"&gt;https://proandroiddev.com/where-to-write-android-ui-tests-part-1-92cc9bf98c03&lt;/a&gt;&lt;br&gt;
&lt;a href="https://proandroiddev.com/where-to-write-android-ui-tests-part-2-cb45033f3ddf"&gt;https://proandroiddev.com/where-to-write-android-ui-tests-part-2-cb45033f3ddf&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Hibernate Traps: @Transactional Integration Tests
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://www.kode-krunch.com/2021/07/hibernate-traps-transactional.html?m=1"&gt;https://www.kode-krunch.com/2021/07/hibernate-traps-transactional.html?m=1&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  JUnit Coroutines Runner
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://krossovochkin.com/posts/2021_07_10_junit_coroutines_runner/"&gt;https://krossovochkin.com/posts/2021_07_10_junit_coroutines_runner/&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Why I'm switching from Mockito to MockK
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://www.ericthecoder.com/2021/07/20/why-im-switching-from-mockito-to-mockk/"&gt;https://www.ericthecoder.com/2021/07/20/why-im-switching-from-mockito-to-mockk/&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Don't mock static: test SLF4J Logger with appenders
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://kotlintesting.com/mock-slf4j/"&gt;https://kotlintesting.com/mock-slf4j/&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Podcasts &amp;amp; videos
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Android Developers Backstage Podcast | Episode 169
&lt;/h3&gt;

&lt;p&gt;In this episode, Romain and Tor are joined by Adarsh Fernando, Arif Sukoco and Yahan Zhou from the Android Studio team, covering the recent improvements to support for testing. This includes automated test snapshots, where the emulator captures a snapshot for a failing test you can then load and analyze later, it includes the Test Matrix tool where the IDE shows a matrix of tests and the devices they're running on, as well as a unified Gradle test runner, and Gradle managed virtual devices, and more.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://adbackstage.libsyn.com/episode-169-testing"&gt;https://adbackstage.libsyn.com/episode-169-testing&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  TDD Conference - talk recordings
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://www.youtube.com/watch?v=-_noEVCR__I"&gt;https://www.youtube.com/watch?v=-_noEVCR__I&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Libraries &amp;amp; releases
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/junit-pioneer/junit-pioneer"&gt;junit-pioneer&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/cashapp/turbine/releases/tag/0.6.0"&gt;turbine release 0.6.0&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;Originally published at &lt;a href="https://kotlintesting.com/tag/newsletter/"&gt;KotlinTesting.com&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>java</category>
      <category>kotlin</category>
      <category>android</category>
      <category>testing</category>
    </item>
    <item>
      <title>JVM Testing Newsletter | June 2021
</title>
      <dc:creator>Jarosław</dc:creator>
      <pubDate>Fri, 02 Jul 2021 08:36:29 +0000</pubDate>
      <link>https://dev.to/rozkminiacz/jvm-testing-newsletter-june-2021-2d5l</link>
      <guid>https://dev.to/rozkminiacz/jvm-testing-newsletter-june-2021-2d5l</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;What's new in JVM testing? Check June 2021 issue.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Articles &amp;amp; blogposts
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Learning shared and state flows with tests
&lt;/h3&gt;

&lt;p&gt;State and shared Flows are hot streams that can propagate items to multiple consumers. State Flows have features such as sharing strategies and conflation. Whereas, shared flows allow you to replay and buffer emissions. In this article, we will explore features of shared and state flows with unit testing.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://codingwithmohit.com/coroutines/learning-shared-and-state-flows-with-tests/"&gt;https://codingwithmohit.com/coroutines/learning-shared-and-state-flows-with-tests/&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Building assertions with Strikt
&lt;/h3&gt;

&lt;p&gt;Strikt is assertion library built for Kotlin with API which allows building multi assertions and gives us readable assertion errors. Check configuration and usage tips.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://kotlintesting.com/building-assertions-with-strikt/"&gt;https://kotlintesting.com/building-assertions-with-strikt/&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  How to retry fails automation tests
&lt;/h3&gt;

&lt;p&gt;Fighting flaky integration tests? With this article you will learn how to configure test frameworks with retry strategies&lt;br&gt;
&lt;a href="https://itnext.io/how-to-retry-fails-automation-tests-af4884c47712?gi=d04727ea3b95"&gt;https://itnext.io/how-to-retry-fails-automation-tests-af4884c47712?gi=d04727ea3b95&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Gradle and Maven Plugins for Native Image with Initial JUnit 5 Testing Support
&lt;/h3&gt;

&lt;p&gt;GraalVM team managed to develop out-of-the-box support for native JUnit5 testing in GraalVM. Now Junit5 should behave the same as with the JVM.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://medium.com/graalvm/gradle-and-maven-plugins-for-native-image-with-initial-junit-testing-support-dde00a8caf0b"&gt;https://medium.com/graalvm/gradle-and-maven-plugins-for-native-image-with-initial-junit-testing-support-dde00a8caf0b&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Libraries &amp;amp; releases
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://spockframework.org/spock/docs/2.0/release_notes.html"&gt;Spock 2.0 is here!&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://assertj.github.io/doc/#assertj-core-release-notes"&gt;AssertJ 3.20.* releases&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/mockito/mockito/releases/"&gt;Mockito 3.11.* releases&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;Originally published at &lt;a href="https://kotlintesting.com/tag/newsletter/"&gt;KotlinTesting.com&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>java</category>
      <category>kotlin</category>
      <category>android</category>
      <category>testing</category>
    </item>
    <item>
      <title>JVM Testing Newsletter | May 2021</title>
      <dc:creator>Jarosław</dc:creator>
      <pubDate>Sun, 06 Jun 2021 13:47:45 +0000</pubDate>
      <link>https://dev.to/rozkminiacz/jvm-testing-newsletter-may-2021-2dnm</link>
      <guid>https://dev.to/rozkminiacz/jvm-testing-newsletter-may-2021-2dnm</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;What's new in JVM testing? Check May 2021 issue.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Articles &amp;amp; blogposts
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Unit Testing Delays, Errors &amp;amp; Retries with Kotlin Flows
&lt;/h3&gt;

&lt;p&gt;Unit testing asynchronous code is not easy – in this blogpost Mohit Sarveiya gives us tips on how to write unit tests for for Kotlin Flow delays, errors and retries.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://codingwithmohit.com/coroutines/unit-testing-delays-errors-retries-with-kotlin-flows/"&gt;https://codingwithmohit.com/coroutines/unit-testing-delays-errors-retries-with-kotlin-flows/&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Understanding Unit Tests for Android in 2021
&lt;/h3&gt;

&lt;p&gt;Christopher Elias explains how to create unit tests for Android projects – in such way that no Android framework dependencies are used directly.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://proandroiddev.com/understanding-unit-tests-for-android-in-2021-71984f370240"&gt;https://proandroiddev.com/understanding-unit-tests-for-android-in-2021-71984f370240&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  How to mock under instrumentation test with MockK and Dexopener
&lt;/h3&gt;

&lt;p&gt;Tim Rijckaert tells us story how his team managed to improve stability of instrumentation tests in Android app with MockK and Dexopener&lt;/p&gt;

&lt;p&gt;&lt;a href="https://proandroiddev.com/how-we-made-our-ui-tests-more-stable-with-mockk-and-dexopener-c78b02a86de"&gt;https://proandroiddev.com/how-we-made-our-ui-tests-more-stable-with-mockk-and-dexopener-c78b02a86de&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Contract-First Development Using RestAssured and OpenAPI
&lt;/h3&gt;

&lt;p&gt;Bence Eros explains how to write integration test for Spring Boot application with OpenAPI specifications and REST-assured framework&lt;/p&gt;

&lt;p&gt;&lt;a href="https://hazelcast.com/blog/contract-first-development-using-restassured-and-openapi/"&gt;https://hazelcast.com/blog/contract-first-development-using-restassured-and-openapi/&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Libraries &amp;amp; releases
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://junit.org/junit5/docs/current/release-notes/index.html#release-notes-5.7.2"&gt;JUnit 5.7.2 released with bug fixes&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://kotest.io/docs/changelog.html#460-may-2021"&gt;Kotest v4.6.0 released&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/willowtreeapps/assertk/releases/tag/v0.24"&gt;assertk 0.24 released&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>java</category>
      <category>kotlin</category>
      <category>testing</category>
      <category>newsletter</category>
    </item>
  </channel>
</rss>
