<?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: raquezha</title>
    <description>The latest articles on DEV Community by raquezha (@raquezha).</description>
    <link>https://dev.to/raquezha</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%2F159924%2F8c4991c8-420c-4da4-96bb-f2ca6d1f7659.png</url>
      <title>DEV Community: raquezha</title>
      <link>https://dev.to/raquezha</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/raquezha"/>
    <language>en</language>
    <item>
      <title>Farsite is a blockchain-powered sandbox </title>
      <dc:creator>raquezha</dc:creator>
      <pubDate>Fri, 06 Aug 2021 16:25:32 +0000</pubDate>
      <link>https://dev.to/raquezha/farsite-is-a-blockchain-powered-sandbox-3n61</link>
      <guid>https://dev.to/raquezha/farsite-is-a-blockchain-powered-sandbox-3n61</guid>
      <description>&lt;p&gt;Farsite a new blockchain-powered sandbox MMO RTS game with elements of adventure in a sci-fi setting based on a post-apocalyptic story!&lt;/p&gt;

&lt;p&gt;Register now! &lt;a href="https://farsite.club/u/raquezha"&gt;https://farsite.club/u/raquezha&lt;/a&gt;&lt;/p&gt;

</description>
      <category>farsite</category>
      <category>raquezha</category>
      <category>nft</category>
      <category>blockchain</category>
    </item>
    <item>
      <title>Sharing is only supported for boot loader classes because bootstrap classpath has been appended.</title>
      <dc:creator>raquezha</dc:creator>
      <pubDate>Wed, 05 May 2021 17:38:11 +0000</pubDate>
      <link>https://dev.to/raquezha/sharing-is-only-supported-for-boot-loader-classes-because-bootstrap-classpath-has-been-appended-1lnk</link>
      <guid>https://dev.to/raquezha/sharing-is-only-supported-for-boot-loader-classes-because-bootstrap-classpath-has-been-appended-1lnk</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--umCLoCA---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j1insef5uhrbxjtfp0d2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--umCLoCA---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j1insef5uhrbxjtfp0d2.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I've encountered this error when I set Gradle JDK 16, downgrading to Java Version 11 seems to fix the issue.&lt;/p&gt;

&lt;p&gt;If downgrading is not an issue for you then this will fix it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--PNSneQBF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rcd7wuvdl7b255z2lke7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--PNSneQBF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rcd7wuvdl7b255z2lke7.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;-- &lt;br&gt;
Here's what I'm using&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Android Studio Arctic Fox | 2020.3.1 Canary 15&lt;/li&gt;
&lt;li&gt;Gradle 7.0&lt;/li&gt;
&lt;li&gt;Amazon Correto 16.0.1 (bug)&lt;/li&gt;
&lt;li&gt;Java Version 11.0.1 (fix)&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>gradle</category>
      <category>android</category>
      <category>jdk16</category>
      <category>jdk11</category>
    </item>
    <item>
      <title>JUnit5 Unit Testing, Test events were not received.</title>
      <dc:creator>raquezha</dc:creator>
      <pubDate>Wed, 05 May 2021 17:19:42 +0000</pubDate>
      <link>https://dev.to/raquezha/junit5-unit-testing-test-events-were-not-received-37dc</link>
      <guid>https://dev.to/raquezha/junit5-unit-testing-test-events-were-not-received-37dc</guid>
      <description>&lt;h1&gt;
  
  
  The Problem
&lt;/h1&gt;

&lt;p&gt;I came from Junit4 testing, and I want to try Junit5 and started writing some unit tests and I'm curious why I received this message: ```Test&lt;br&gt;
&lt;br&gt;
 events were not received.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
After some digging I've found out more detailed errors:
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;FAILURE: Build failed with an exception.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What went wrong:
Execution failed for task ':splash:testDebugUnitTest'.
&amp;gt; No tests found for given includes: &lt;a href="//filter.includeTestsMatching"&gt;com.raquezha.heograpiya.splash.SampleTestTest&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
So I google on how to solve the problem and stumble on this site [gradle.org site](https://docs.gradle.org/current/userguide/java_testing.html#using_junit5)


I just have to add this code to enable JUnit Platform to run my tests:

Gradle DSL (build.gradle)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;test {&lt;br&gt;
    useJUnitPlatform()&lt;br&gt;
}&lt;/p&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Kotlin DSL (build.gradle.kts)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;tasks.named("test") {&lt;br&gt;
    useJUnitPlatform()&lt;br&gt;
}&lt;/p&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
But after adding those code another problem occurred:


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;&lt;br&gt;
 A problem occurred evaluating project ':app'.&lt;br&gt;
"&amp;gt; Could not find method test()" &lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
I've added this because maybe for some this is the solution but unfortunately this did not work for me. If above did not work for you can try the solution below.

#Solution
After digging a little because all of my searches were not working I stumble upon this stackoverflow [post](https://stackoverflow.com/questions/58168384/how-to-run-tests-by-gradle-instead-of-intellij-with-junit5-and-springboot2-in-mu) it turns out I'm missing one import!


I just add this missing dependency:
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;testImplementation 'org.junit.jupiter:junit-jupiter:5.8.0-M1'&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;And after successful gradle sync, tadah!
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/826v4n82a2m87qbtjn2b.png)

I hope this helps someone fix this noob error.

--

Here's what I'm using
1. Android Studio Arctic Fox | 2020.3.1 Canary 15
2. Gradle 7.0
3. Kotlin 1.5.0
4. Dependencies
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;testImplementation 'org.junit.jupiter:junit-jupiter:5.8.0-M1'&lt;br&gt;
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.0-M1'&lt;br&gt;
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.8.0-M1'&lt;br&gt;
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.0-M1'&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>kotlin</category>
      <category>junit5</category>
      <category>test</category>
      <category>android</category>
    </item>
  </channel>
</rss>
