<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Elvin Han on Medium]]></title>
        <description><![CDATA[Stories by Elvin Han on Medium]]></description>
        <link>https://medium.com/@elvin.han?source=rss-109d7ab02825------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*4AyM3LsPD70_b-7TJMpvHw.jpeg</url>
            <title>Stories by Elvin Han on Medium</title>
            <link>https://medium.com/@elvin.han?source=rss-109d7ab02825------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 20:36:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@elvin.han/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Android Project에 Spek 적용시 발생하는 이슈]]></title>
            <link>https://medium.com/@elvin.han/android-%ED%94%84%EB%A1%9C%EC%A0%9D%ED%8A%B8%EC%97%90-spek-%EC%A0%81%EC%9A%A9%EC%8B%9C-%EB%B0%9C%EC%83%9D%ED%95%98%EB%8A%94-%EC%9D%B4%EC%8A%88-f7880d585be?source=rss-109d7ab02825------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7880d585be</guid>
            <category><![CDATA[spek]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[gradle]]></category>
            <dc:creator><![CDATA[Elvin Han]]></dc:creator>
            <pubDate>Wed, 21 Sep 2016 07:31:50 GMT</pubDate>
            <atom:updated>2016-09-21T07:37:09.834Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="http://jetbrains.github.io/spek/docs/latest/"><strong>가이드 문서</strong></a>대로 설정을 했는데, 아래와 같은 오류가 발생했다.</p><h3>Could not find method testRuntime()</h3><pre>Error:(41, 0) Could not find method <strong>testRuntime</strong>() for arguments [org.jetbrains.spek:spek-junit-platform-engine:1.0.89] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.</pre><p>동일한 문제가 <a href="https://github.com/JetBrains/spek/issues/117">github issue</a>에 등록되어 있어서 살펴봤더니, testRuntime은 gradle java plugin에서만 동작한다고 한다. <strong>testRuntime을 testCompile로 변경</strong>하면 해결되지만, 다른 이슈가 발생한다.</p><h3>Error:Task with name ‘testClasses’ not found in project ‘:app’.</h3><pre>Error:Task with name &#39;testClasses&#39; not found in project &#39;:app&#39;.</pre><p>해당 오류는 JU<a href="https://github.com/junit-team/junit5/issues/204">nit5의 JUnit platform plugin의 이슈</a>라고 한다. <a href="https://github.com/junit-team/junit5/pull/499">해당 이슈는 해결되었고</a>, JUnit 5.0.0-M4 Milestone에 포함된 상태이다. 현재 기준, JUnit 최신버젼이 5.0.0-M2이니, 1~2달 이내 배포되지 않을까 싶다.</p><p>그 전까지는 <a href="http://jetbrains.github.io/spek/docs/latest/#_junit_platform"><strong>JUnit4 based runner</strong></a><strong>를 사용하면 해결</strong>된다.</p><ul><li>gradle.build에 org.junit.platform:junit-platform-runner depencey를 추가하고</li><li>Spec(Test)의 class 위에 <strong>@RunWith(JUnitPlatform::class) </strong>를 붙여준다.</li></ul><p>위의 이슈를 해결한 샘플 코드를 github에 올려두었다. <a href="https://github.com/elvin-han/AndroidSpekSample/blob/master/app/build.gradle#L33-L35">app/build.gradle 파일</a>과 <a href="https://github.com/elvin-han/AndroidSpekSample/blob/master/app/src/test/kotlin/kr/elvin/androidspeksample/ExampleUnitSpec.kt">샘플 테스트코드</a>를 참고하면 된다.</p><p><a href="https://github.com/elvin-han/AndroidSpekSample">elvin-han/AndroidSpekSample</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7880d585be" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[This is my first story.]]></title>
            <link>https://medium.com/@elvin.han/test-9309e41ad433?source=rss-109d7ab02825------2</link>
            <guid isPermaLink="false">https://medium.com/p/9309e41ad433</guid>
            <dc:creator><![CDATA[Elvin Han]]></dc:creator>
            <pubDate>Wed, 31 Aug 2016 02:16:00 GMT</pubDate>
            <atom:updated>2016-08-31T15:23:26.642Z</atom:updated>
            <content:encoded><![CDATA[<p>This is my first story.</p><pre>val message = &quot;Hello Medium&quot;<br>println(message)</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9309e41ad433" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>