<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>devkuma – IntelliJ</title>
    <link>https://www.devkuma.com/jp/tags/intellij/</link>
    <image>
      <url>https://www.devkuma.com/jp/tags/intellij/logo/180x180.jpg</url>
      <title>IntelliJ</title>
      <link>https://www.devkuma.com/jp/tags/intellij/</link>
    </image>
    <description>Recent content in IntelliJ on devkuma</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>jp</language>
    <managingEditor>kc@example.com (kc kim)</managingEditor>
    <webMaster>kc@example.com (kc kim)</webMaster>
    <copyright>The devkuma</copyright>
    
	  <atom:link href="https://www.devkuma.com/jp/tags/intellij/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Kotest IntelliJ Plugin 紹介</title>
      <link>https://www.devkuma.com/jp/docs/kotest/intellij-plugin/introduction/</link>
      <pubDate>Sun, 25 Feb 2024 10:28:00 +0900</pubDate>
      <author>kc@example.com (kc kim)</author>
      <guid>https://www.devkuma.com/jp/docs/kotest/intellij-plugin/introduction/</guid>
      <description>
        
        
        &lt;p&gt;Kotest は、JetBrains プラグイン&lt;a href=&#34;https://plugins.jetbrains.com/plugin/14080-kotest&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;マーケットプレイス&lt;i class=&#34;fas fa-external-link-alt&#34;&gt;&lt;/i&gt;&lt;/a&gt;、または IntelliJ 内の検索から利用できる &lt;a href=&#34;https://github.com/kotest/kotest-intellij-plugin&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;IntelliJ プラグイン&lt;i class=&#34;fas fa-external-link-alt&#34;&gt;&lt;/i&gt;&lt;/a&gt;を提供する。&lt;/p&gt;
&lt;p&gt;このプラグインは、各テストの実行アイコン、テスト探索用のツールウィンドウ、重複テストのハイライト、アサーション intention などを提供する。&lt;/p&gt;
&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;&lt;div class=&#34;h4 alert-heading&#34; role=&#34;heading&#34;&gt;NOTE&lt;/div&gt;


IntelliJ プラグインには Kotest 4.2 以降が必要であり、マルチプラットフォームプロジェクトの common tests は実行されない。
&lt;/div&gt;

&lt;h2 id=&#34;gutter-icons&#34;&gt;Gutter Icons&lt;/h2&gt;
&lt;p&gt;IntelliJ プラグインには Kotest 4.2 以降が必要であり、マルチプラットフォームプロジェクトの common tests は実行されない。&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://www.devkuma.com/docs/kotest/kotest-intellij-plugin-gutter_icons.png&#34; alt=&#34;gutter_icon_picture&#34;&gt;&lt;/p&gt;
&lt;p&gt;bang によって無効化されたテスト、または &lt;code&gt;xdescribe&lt;/code&gt; のような &lt;code&gt;xfunctions&lt;/code&gt; によって無効化されたテストは、ガターに無効化されたテストアイコンが表示される。&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://www.devkuma.com/docs/kotest/kotest-intellij-plugin-gutter_disabled.png&#34; alt=&#34;gutter_icon_picture&#34;&gt;&lt;/p&gt;
&lt;h2 id=&#34;テスト実行&#34;&gt;テスト実行&lt;/h2&gt;
&lt;p&gt;Gutter Icons から spec を実行すると、その spec のすべてのテストが実行される。テストを実行すると、そのテストとネストされたすべてのテストが実行される。&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://www.devkuma.com/docs/kotest/kotest-intellij-plugin-gutter_run.png&#34; alt=&#34;gutter_icon_picture&#34;&gt;&lt;/p&gt;
&lt;h2 id=&#34;重複テストのハイライト&#34;&gt;重複テストのハイライト&lt;/h2&gt;
&lt;p&gt;同じ名前のテストを 2 つ持つことはできない。プラグインは重複したテスト名をエラーとしてハイライトする。&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://www.devkuma.com/docs/kotest/kotest-intellij-plugin-duplicated_test_string_spec.png&#34; alt=&#34;duplicated_test_picture&#34;&gt;&lt;/p&gt;
&lt;h2 id=&#34;コンテキストメニュー-rundebug&#34;&gt;コンテキストメニュー Run/Debug&lt;/h2&gt;
&lt;p&gt;パッケージを右クリックすると、そのパッケージ内のすべてのテストを実行、デバッグ、またはカバレッジ付きで実行できる。&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://www.devkuma.com/docs/kotest/kotest-intellij-plugin-run_context_menu.png&#34; alt=&#34;run_context_menu_picture&#34;&gt;&lt;/p&gt;
&lt;h2 id=&#34;intentions&#34;&gt;Intentions&lt;/h2&gt;
&lt;p&gt;このプラグインには、いくつかの基本的な intentions がある。たとえば、テストを素早く無効化済みとしてマークできる。&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://www.devkuma.com/docs/kotest/kotest-intellij-plugin-intention_bang.png&#34; alt=&#34;gutter_icon_picture&#34;&gt;&lt;/p&gt;
&lt;p&gt;また、一部のテキストをハイライトして throw すべきものとしてマークしたり、soft assertion ブロックで囲んだりできる。&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://www.devkuma.com/docs/kotest/kotest-intellij-plugin-intentions_surround.png&#34; alt=&#34;gutter_icon_picture&#34;&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;参照&#34;&gt;参照&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://kotest.io/docs/intellij/intellij-plugin.html&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;IntelliJ Plugin | Kotest&lt;i class=&#34;fas fa-external-link-alt&#34;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

      </description>
      
      <category>Kotlin</category>
      
      <category>Kotest</category>
      
      <category>IntelliJ</category>
      
    </item>
    
  </channel>
</rss>
