<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
		<id>https://wiki.nonip.net/index.php?action=history&amp;feed=atom&amp;title=%E3%82%BB%E3%82%AD%E3%83%A5%E3%83%AA%E3%83%86%E3%82%A3%2F%E9%9D%99%E7%9A%84%E8%A7%A3%E6%9E%90%2FSonar%2Fsonar-scanner%E3%83%86%E3%82%B9%E3%83%88</id>
		<title>セキュリティ/静的解析/Sonar/sonar-scannerテスト - 変更履歴</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.nonip.net/index.php?action=history&amp;feed=atom&amp;title=%E3%82%BB%E3%82%AD%E3%83%A5%E3%83%AA%E3%83%86%E3%82%A3%2F%E9%9D%99%E7%9A%84%E8%A7%A3%E6%9E%90%2FSonar%2Fsonar-scanner%E3%83%86%E3%82%B9%E3%83%88"/>
		<link rel="alternate" type="text/html" href="https://wiki.nonip.net/index.php?title=%E3%82%BB%E3%82%AD%E3%83%A5%E3%83%AA%E3%83%86%E3%82%A3/%E9%9D%99%E7%9A%84%E8%A7%A3%E6%9E%90/Sonar/sonar-scanner%E3%83%86%E3%82%B9%E3%83%88&amp;action=history"/>
		<updated>2026-04-24T21:48:24Z</updated>
		<subtitle>このウィキのこのページに関する変更履歴</subtitle>
		<generator>MediaWiki 1.24.2</generator>

	<entry>
		<id>https://wiki.nonip.net/index.php?title=%E3%82%BB%E3%82%AD%E3%83%A5%E3%83%AA%E3%83%86%E3%82%A3/%E9%9D%99%E7%9A%84%E8%A7%A3%E6%9E%90/Sonar/sonar-scanner%E3%83%86%E3%82%B9%E3%83%88&amp;diff=9582&amp;oldid=prev</id>
		<title>Admin: Admin がページ「Sonar/sonar-scannerテスト」を「セキュリティ/静的解析/Sonar/sonar-scannerテスト」に、リダイレクトを残さずに移動しました</title>
		<link rel="alternate" type="text/html" href="https://wiki.nonip.net/index.php?title=%E3%82%BB%E3%82%AD%E3%83%A5%E3%83%AA%E3%83%86%E3%82%A3/%E9%9D%99%E7%9A%84%E8%A7%A3%E6%9E%90/Sonar/sonar-scanner%E3%83%86%E3%82%B9%E3%83%88&amp;diff=9582&amp;oldid=prev"/>
				<updated>2019-11-25T06:34:26Z</updated>
		
		<summary type="html">&lt;p&gt;Admin がページ「&lt;a href=&quot;/index.php?title=Sonar/sonar-scanner%E3%83%86%E3%82%B9%E3%83%88&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Sonar/sonar-scannerテスト (存在しないページ)&quot;&gt;Sonar/sonar-scannerテスト&lt;/a&gt;」を「&lt;a href=&quot;/index.php/%E3%82%BB%E3%82%AD%E3%83%A5%E3%83%AA%E3%83%86%E3%82%A3/%E9%9D%99%E7%9A%84%E8%A7%A3%E6%9E%90/Sonar/sonar-scanner%E3%83%86%E3%82%B9%E3%83%88&quot; title=&quot;セキュリティ/静的解析/Sonar/sonar-scannerテスト&quot;&gt;セキュリティ/静的解析/Sonar/sonar-scannerテスト&lt;/a&gt;」に、リダイレクトを残さずに移動しました&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;←前の版&lt;/td&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;2019年11月25日 (月) 06:34時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan='2' style='text-align: center;'&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(相違点なし)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.nonip.net/index.php?title=%E3%82%BB%E3%82%AD%E3%83%A5%E3%83%AA%E3%83%86%E3%82%A3/%E9%9D%99%E7%9A%84%E8%A7%A3%E6%9E%90/Sonar/sonar-scanner%E3%83%86%E3%82%B9%E3%83%88&amp;diff=3763&amp;oldid=prev</id>
		<title>2017年1月23日 (月) 07:51にAdminによる</title>
		<link rel="alternate" type="text/html" href="https://wiki.nonip.net/index.php?title=%E3%82%BB%E3%82%AD%E3%83%A5%E3%83%AA%E3%83%86%E3%82%A3/%E9%9D%99%E7%9A%84%E8%A7%A3%E6%9E%90/Sonar/sonar-scanner%E3%83%86%E3%82%B9%E3%83%88&amp;diff=3763&amp;oldid=prev"/>
				<updated>2017-01-23T07:51:31Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;←前の版&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;2017年1月23日 (月) 07:51時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;行10:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;行10:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==サンプル実行==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==サンプル実行==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; sonar-&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;runner&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; sonar-&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;scanner&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==テスト網羅率表示==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==テスト網羅率表示==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.nonip.net/index.php?title=%E3%82%BB%E3%82%AD%E3%83%A5%E3%83%AA%E3%83%86%E3%82%A3/%E9%9D%99%E7%9A%84%E8%A7%A3%E6%9E%90/Sonar/sonar-scanner%E3%83%86%E3%82%B9%E3%83%88&amp;diff=3761&amp;oldid=prev</id>
		<title>Admin: Admin がページ「Sonar/sonar-runnerテスト」を「Sonar/sonar-scannerテスト」に移動しました</title>
		<link rel="alternate" type="text/html" href="https://wiki.nonip.net/index.php?title=%E3%82%BB%E3%82%AD%E3%83%A5%E3%83%AA%E3%83%86%E3%82%A3/%E9%9D%99%E7%9A%84%E8%A7%A3%E6%9E%90/Sonar/sonar-scanner%E3%83%86%E3%82%B9%E3%83%88&amp;diff=3761&amp;oldid=prev"/>
				<updated>2017-01-23T07:51:03Z</updated>
		
		<summary type="html">&lt;p&gt;Admin がページ「&lt;a href=&quot;/index.php?title=Sonar/sonar-runner%E3%83%86%E3%82%B9%E3%83%88&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Sonar/sonar-runnerテスト (存在しないページ)&quot;&gt;Sonar/sonar-runnerテスト&lt;/a&gt;」を「&lt;a href=&quot;/index.php?title=Sonar/sonar-scanner%E3%83%86%E3%82%B9%E3%83%88&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Sonar/sonar-scannerテスト (存在しないページ)&quot;&gt;Sonar/sonar-scannerテスト&lt;/a&gt;」に移動しました&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;←前の版&lt;/td&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;2017年1月23日 (月) 07:51時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan='2' style='text-align: center;'&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(相違点なし)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.nonip.net/index.php?title=%E3%82%BB%E3%82%AD%E3%83%A5%E3%83%AA%E3%83%86%E3%82%A3/%E9%9D%99%E7%9A%84%E8%A7%A3%E6%9E%90/Sonar/sonar-scanner%E3%83%86%E3%82%B9%E3%83%88&amp;diff=200&amp;oldid=prev</id>
		<title>127.0.0.1: ページの作成:「==必須ライブラリ==  $ php -m | grep xdebug  xdebug  ==sonar-php-unit-testのサンプルをDL==  $ wget https://github.com/SonarSource/sonar-examples/zipball/maste...」</title>
		<link rel="alternate" type="text/html" href="https://wiki.nonip.net/index.php?title=%E3%82%BB%E3%82%AD%E3%83%A5%E3%83%AA%E3%83%86%E3%82%A3/%E9%9D%99%E7%9A%84%E8%A7%A3%E6%9E%90/Sonar/sonar-scanner%E3%83%86%E3%82%B9%E3%83%88&amp;diff=200&amp;oldid=prev"/>
				<updated>2015-05-19T18:08:38Z</updated>
		
		<summary type="html">&lt;p&gt;ページの作成:「==必須ライブラリ==  $ php -m | grep xdebug  xdebug  ==sonar-php-unit-testのサンプルをDL==  $ wget https://github.com/SonarSource/sonar-examples/zipball/maste...」&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==必須ライブラリ==&lt;br /&gt;
 $ php -m | grep xdebug&lt;br /&gt;
 xdebug&lt;br /&gt;
&lt;br /&gt;
==sonar-php-unit-testのサンプルをDL==&lt;br /&gt;
 $ wget https://github.com/SonarSource/sonar-examples/zipball/master&lt;br /&gt;
 $ unzip master&lt;br /&gt;
 $ cd SonarSource-sonar-examples-5b942de/projects/languages/php/php-sonar-runner-unit-tests&lt;br /&gt;
 $ vi sonar-project.properties&lt;br /&gt;
&lt;br /&gt;
==サンプル実行==&lt;br /&gt;
 sonar-runner&lt;br /&gt;
&lt;br /&gt;
==テスト網羅率表示==&lt;br /&gt;
 $ vi sonar-project.properties&lt;br /&gt;
に追加&lt;br /&gt;
 sonar.phpUnit.mainTestClass=tests/AllTest.php&lt;br /&gt;
&lt;br /&gt;
注意：xdebug必須&lt;br /&gt;
&lt;br /&gt;
==テスト成功率表示==&lt;br /&gt;
 $ vi sonar-project.properties&lt;br /&gt;
 # Unit test success on&lt;br /&gt;
 sonar.tests=tests&lt;br /&gt;
&lt;br /&gt;
==tests/phpunit.xmlからphpunitを実行する場合==&lt;br /&gt;
 $ vi sonar-project.properties&lt;br /&gt;
に追加&lt;br /&gt;
 sonar.phpUnit.ignore.configuration=false&lt;br /&gt;
 sonar.phpUnit.skip=false&lt;br /&gt;
 sonar.phpUnit.mainTestClass=tests/application&lt;br /&gt;
 sonar.phpUnit.bootstrap=tests/bootstrap.php&lt;br /&gt;
 sonar.phpUnit.filter=tests/application&lt;br /&gt;
 sonar.phpUnit.coverage.skip=false&lt;br /&gt;
&lt;br /&gt;
・・・としてみたが、phpunit.xmlは読み込まれない？&lt;br /&gt;
&lt;br /&gt;
==以下エラー対処方法==&lt;br /&gt;
 Caused by: org.sonar.api.utils.SonarException: PHPUnit execution failed with returned code '255'. Please check the documentation of PHPUnit to know more about this failure.&lt;br /&gt;
&lt;br /&gt;
エラー行の20行ぐらい前に&amp;quot;PHP Fatal error&amp;quot;などが出ているので、そこを確認する&lt;br /&gt;
&lt;br /&gt;
なければエラーログにはかれてないか確認。php -r &amp;quot;phpinfo();&amp;quot; | grep error_log&lt;br /&gt;
&lt;br /&gt;
==注意==&lt;br /&gt;
ダッシュボードの&amp;quot;Unit tests coverage&amp;quot;からファイル一覧を見てもカバレッジ100%は表示されない。コンポーネントからファイル一覧をみること。&lt;br /&gt;
&lt;br /&gt;
==テストが実行されないファイルがある場合==&lt;br /&gt;
ファイル名がphpunitの命名規則にあってるか確認(~Test.php)&lt;br /&gt;
&lt;br /&gt;
==coverageが0%になる場合==&lt;br /&gt;
 .sonar/target/logs/phpunit.coverage.xml&lt;br /&gt;
に結果ログが残っているか確認&lt;br /&gt;
&lt;br /&gt;
 The Xdebug extension is not loaded. No code coverage will be generated.&lt;br /&gt;
xdebugがインストールされていないエラーが出てないか確認。出てたらxdebugを入れる&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==参照URL==&lt;br /&gt;
*sonar-runnerオプション解説ページ&lt;br /&gt;
http://docs.codehaus.org/display/SONAR/PHP+Plugin&lt;/div&gt;</summary>
		<author><name>127.0.0.1</name></author>	</entry>

	</feed>