How do I install the Kotest plugin for intellij from a github repository?

可紊 提交于 2020-05-17 05:56:08

问题


I have this repo but don't know how to actually use it. Only did a git clone but what is next? https://github.com/kotest/kotest-intellij-plugin


回答1:


Ok, I managed to install it ! Steps are:

(On command line)

1) git clone the repo by running this git clone https://github.com/kotest/kotest-intellij-plugin.git.

2) Change directory to be inside the repo main folder and run gradle build.

(On IntelliJ IDEA)

3) Go to Prefrences->plugins and click on the little cog symbol at the top. Choose "Install plugin from disk"

4) Then choose the zip file created under \build\distributions folder. Once you click ok it will install it and you will have to restart your IDEA.

One more thing that I am not sure is needed: I included this part in my pom.xml. (the version might be different for you).

        <dependency>
            <groupId>io.kotest</groupId>
            <artifactId>kotest-runner-console</artifactId>
            <version>4.0.5</version>
            <type>pom</type>
        </dependency>



回答2:


@Dawn answer works well instead of builing from the source code you can also directly download the plugin from jetbrains plugin repository and install it as per the instruction given in @Dawn answer.



来源:https://stackoverflow.com/questions/61657293/how-do-i-install-the-kotest-plugin-for-intellij-from-a-github-repository

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!