2019独角兽企业重金招聘Python工程师标准>>>
PluginJUnitGeneratorV2.0 was not installed: Cannot download '/?action=download&id=org.intellij.plugins.junitgen&build=IU-162.2228.15&uuid=6a6cb9f5-4107-46d7-9b1c-d8205218a73b': Software caused connection abort: recv failed
错误如图:
解决办法:
在提示地址上面下载JUnitGenerator V2.0,地址如下:
/?action=download&id=org.intellij.plugins.junitgen&build=IU-162.2228.15&uuid=6a6cb9f5-4107-46d7-9b1c-d8205218a73b
①下载到本地
②file->settting->plugins->install plugin from disk
找到插件所在位置 如果出现restart project 即为成功。
重新进入项目之后,alt+insert 即可看到junit test。
修改自动生成测试test的路径
File->Settings->JUnit Generator
3.Properties选项卡里的Output Path为测试用例生成的目录,修改为test目录:${SOURCEPATH}/../../test/java/${PACKAGE}/${FILENAME}
注:
如果出现编码错误:
File->Settings->JUnit Generator->JUnit4
* @since <pre>$date</pre> 替换 @since <pre>$today</pre>
如果出现包名错误:
package test.$entry.packageName; 改为package $entry.packageName;
希望对大家有所帮助谢谢。
转载于:
本文发布于:2024-01-28 09:30:30,感谢您对本站的认可!
本文链接:https://www.4u4v.net/it/17064054366458.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |