title: android fragment-testing dependency causes release build to fail compilation
body: <p>I followed <a href="https://developer.android.com/training/basics/fragments/testing" rel="nofollow noreferrer">the android tutorial</a> on testing fragments and added the gradle dependency as debugImplementation</p>
  <pre><code>    def fragmentVersion = &quot;1.2.5&quot;
      implementation &quot;androidx.fragment:fragment-ktx:$fragmentVersion&quot;
      debugImplementation &quot;androidx.fragment:fragment-testing:$fragmentVersion&quot;
  </code></pre>
  <p>Now my release unit test task won't compile because the methods that i call to launch fragments don't exist on the release classpath..</p>
  <pre><code>
  &gt; Task :app:compileReleaseUnitTestKotlin FAILED
  e: C:\Users\....kt: (5, 30): Unresolved reference: testing
  e: C:\Users\....kt: (58, 9): Unresolved reference: launchFragmentInContainer
  e: C:\Users\....kt: (65, 9): Unresolved reference: launchFragmentInContainer
  
  </code></pre>
  <p>I understand why they make it debug only, so you don't have the testing stuff in your release build.
  But how do I fix this compilation issue?</p>