<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>jenkins - Naver Ending Study</title>
	<atom:link href="https://nangchang.nes.or.kr/tag/jenkins/feed/" rel="self" type="application/rss+xml" />
	<link>https://nangchang.nes.or.kr</link>
	<description></description>
	<lastBuildDate>Tue, 05 Jun 2012 06:31:48 +0000</lastBuildDate>
	<language>ko-KR</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8</generator>
	<item>
		<title>Jenkins + Sonar 사용 시 Unit test 실패</title>
		<link>https://nangchang.nes.or.kr/jenkins-sonar-%ec%82%ac%ec%9a%a9-%ec%8b%9c-unit-test-%ec%8b%a4%ed%8c%a8/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=jenkins-sonar-%25ec%2582%25ac%25ec%259a%25a9-%25ec%258b%259c-unit-test-%25ec%258b%25a4%25ed%258c%25a8</link>
					<comments>https://nangchang.nes.or.kr/jenkins-sonar-%ec%82%ac%ec%9a%a9-%ec%8b%9c-unit-test-%ec%8b%a4%ed%8c%a8/#respond</comments>
		
		<dc:creator><![CDATA[낭창]]></dc:creator>
		<pubDate>Tue, 05 Jun 2012 06:31:48 +0000</pubDate>
				<category><![CDATA[프로그래밍 이야기]]></category>
		<category><![CDATA[jenkins]]></category>
		<category><![CDATA[maven]]></category>
		<category><![CDATA[sonar]]></category>
		<guid isPermaLink="false">http://nangchang.nes.or.kr/?p=482</guid>

					<description><![CDATA[<p>Spring MVC 어플리케이션을 위해 Jenkins를 이용해 CI 서버를 구축하고Jenkins의 sonar 플러그인을 사용해 Sonar와 연결해 사용 중인데, sonar에서 실행하는Unit test가 알수 없는 이유로 실패를 한다.정확히는 sonar 에서 unit test를 위해 돌리는 cobertura 라는 놈이 문제인 듯&#8230; 한데&#8230; java.lang.IllegalStateException: Failed to load ApplicationContext Expecting a stackmap frame at branch target 47 in method z.y.x.controller.TestController.list(Lorg/springframework/ui/Model;)Ljava/lang/String; at offset 17 [&#8230;]</p>
<p>The post <a href="https://nangchang.nes.or.kr/jenkins-sonar-%ec%82%ac%ec%9a%a9-%ec%8b%9c-unit-test-%ec%8b%a4%ed%8c%a8/">Jenkins + Sonar 사용 시 Unit test 실패</a> first appeared on <a href="https://nangchang.nes.or.kr">Naver Ending Study</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Spring MVC 어플리케이션을 위해 Jenkins를 이용해 CI 서버를 구축하고<br />Jenkins의 sonar 플러그인을 사용해 Sonar와 연결해 사용 중인데, sonar에서 실행하는<br />Unit test가 알수 없는 이유로 실패를 한다.<br />정확히는 sonar 에서 unit test를 위해 돌리는 <span style="font-size: 11px; line-height: normal; white-space: pre-wrap; ">cobertura 라는 놈이 문제인 듯&#8230; 한데&#8230;</span><br /><span style="font-size: 11px; line-height: normal; white-space: pre-wrap; "><br /></span></p>
<div>
<blockquote>
<pre style="white-space: pre-wrap; word-wrap: break-word; margin-top: 0px; margin-bottom: 0px; font-size: 11px; line-height: normal; ">java.lang.IllegalStateException: Failed to load ApplicationContext</pre>
</blockquote>
<pre style="word-wrap: break-word; margin-top: 0px; margin-bottom: 0px; "><blockquote style="font-size: 11px; line-height: normal; white-space: pre-wrap; "><pre style="white-space: pre-wrap; word-wrap: break-word; margin-top: 0px; margin-bottom: 0px; ">Expecting a stackmap frame at branch target 47 in method z.y.x.controller.TestController.list(Lorg/springframework/ui/Model;)Ljava/lang/String; at offset 17</pre>
</blockquote>
<pre style="font-size: 11px; line-height: normal; white-space: pre-wrap; word-wrap: break-word; margin-top: 0px; margin-bottom: 0px; ">등의 에러가 발생한다. Jenkins에서 자체적으로 돌리는 Unit test는 문제가 없는걸로 봐서</pre>
<pre style="font-size: 11px; line-height: normal; white-space: pre-wrap; word-wrap: break-word; margin-top: 0px; margin-bottom: 0px; ">Jenkins나 JUnit의 문제는 아닌 듯하고..</pre>
<pre style="font-size: 11px; line-height: normal; white-space: pre-wrap; word-wrap: break-word; margin-top: 0px; margin-bottom: 0px; ">어째든 구글신께 열심히 물어본 결과, maven plugin 중에 surefire 라는 놈이 관련이 있는 듯하다.</pre>
<pre style="font-size: 11px; line-height: normal; white-space: pre-wrap; word-wrap: break-word; margin-top: 0px; margin-bottom: 0px; ">maven의 pom.xml에 다음을 추가해 주고 빌드를 돌리니 문제가 없다.</pre>
<pre style="word-wrap: break-word; margin-top: 0px; margin-bottom: 0px; "><span style="font-size: 11px; line-height: normal; white-space: pre-wrap;"><blockquote>&lt;plugin&gt;
	&lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
	&lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
	&lt;version&gt;2.12&lt;/version&gt;
	&lt;configuration&gt;
		&lt;argLine&gt;-XX:-UseSplitVerifier&lt;/argLine&gt;
	&lt;/configuration&gt;
&lt;/plugin&gt;</blockquote><br></span></pre>
</div><p>The post <a href="https://nangchang.nes.or.kr/jenkins-sonar-%ec%82%ac%ec%9a%a9-%ec%8b%9c-unit-test-%ec%8b%a4%ed%8c%a8/">Jenkins + Sonar 사용 시 Unit test 실패</a> first appeared on <a href="https://nangchang.nes.or.kr">Naver Ending Study</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://nangchang.nes.or.kr/jenkins-sonar-%ec%82%ac%ec%9a%a9-%ec%8b%9c-unit-test-%ec%8b%a4%ed%8c%a8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
