Continuous testing with IntelliJ Idea

前端 未结 4 674
一个人的身影
一个人的身影 2021-02-01 14:53

I\'m looking for an IntelliJ IDEA plugin that would run my tests each time I change my code. I looked for such a solution and I found:

  • Infinitest, which works, but
4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-01 15:18

    I know this is a 3-year-old question but I think it will help people who face the similar problem in future. So I found out a way to enable SBT style auto test execution in IntelliJ studio.

    We need to do 2 things to enable auto test execution.

    1. Enabling auto project build - This can be done in settings by going into File -> Settings -> Build, Execution... -> Compiler and selecting "Build Project automatically".

    1. Enabling "Toggle auto-test" in run dialog box

    This will start auto testing. Although this works fine, it takes time to build the project even when my project is tiny so for larger projects it will certainly take very long time to complete the build and execute tests.

    Reference: Original article which explains these steps

提交回复
热议问题