Intellij- IDE的工作障碍,不在运行/调试上构建模块
我有一个相当大的项目,其中硒/黄瓜部分集成了,属于我。
不,在升级到2022年的Intelij之后,我发现情况已经变化了。由于我只考虑包含Cucumber/Selenium测试的模块,因此我已经用来单击每种运行/调试配置上的运行或调试来构建我的更改,并且Cucumber/Cucumber/Selenium测试在我的计算机上本地运行。
这不再起作用了,我在网上发现的所有帮助/支持中绝对是无济于事的。问题在于,当我更改代码并单击“运行或调试”时,未构建模块(Cucumber,所有Cucumber/Selenium测试)。因此,当我在进行调试/修复测试时,它会继续运行先前构建的代码。
该解决方案是首先构建包含测试的模块,然后运行/调试测试。即使运行/调试配置在启动之前确实具有“构建”。但这很累,并且完全浪费了时间。
那么,我想知道的是:我可以裁定终端命令来完成这一切吗?也就是说,构建一个指定的模块,然后运行或调试黄瓜测试。
任何帮助/提示都将受到赞赏。我正在遇到通常的“我”问题,那里似乎世界上的其他所有人都有工作,而同样的解决方案对我不起作用。
编辑: 我尝试了以下评论中提供的解决方案:删除了.IDEA文件夹,重新调查了所有Maven模块并重新配置了项目。它似乎在第一次跑步上工作,但后来又回到了发射之前不建造。
I have a pretty large project, of which the Selenium/Cucumber part is integrated, and belongs to me.
No, after upgrading to Intelij 2022, I find that things have changed to the worse. Since I only bother about the module containin cucumber/selenium tests, I have been used to just clicking Run or Debug on each Run/Debug configuration to get my changes built, and the Cucumber/Selenium tests run locally on my computer.
This doesn't work anymore, and absolutely 100% of all help/support I have found on the net is unhelpful. The problem is that when I make a change in the code and click Run or Debug, the module (cucumber, where all the Cucumber/selenium tests resides) is not built. So, it keeps running the previously built code when I'm working on debugging/fixing tests.
The solution has been to first build the module containing the tests, then run/debug the test(s). Even though the run/debug configuration DOES have "Build" before launch. But this is tiresome, and a total waste of time.
So, what I'm wondering is: Can I tailer a terminal command to do all this? That is, build a specified module, then Run or Debug a Cucumber test.
Any help/hints are appreciated. I'm experiencting the usual "me" problem, where it seems that everyone else in the world has something working, while the same solutions doesn't work for me.
EDIT:
I tried the solution offered below in the comments: Deleted the .idea folder, reimported all Maven modules and reconfigured the project. It seemed to work on the first run, but then it went back to not building before launch.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以尝试更改IDEA中的选择“运行/调试配置”。将构建构建项目更改。它对我有用。
You can try to change Select Run/Debug configuration in idea. Change Build to Build Project. It worked for me.