项目:SeleniumRCTestLibraryGradle
script-src
环境/系统变量:
System: Windows 7 Enterprise SP1 x64
Gradle: 4.6, integrated in eclipse (Eclipse Marketplace: Buildship Gradle Integration 2.0, Groovy Development Tools 3.0.0)
IDE: Eclipse 4.7.3a (Oxygen.3a)
项目结构:
JAVA_HOME C:\Program Files\Java\jdk1.8.0_162
JAVA_PATH C:\Program Files\Java\jdk1.8.0_162\bin
classpath C:\Program Files\Java\jdk1.8.0_162\lib
path included ";C:\Program Files\Java\jdk1.8.0_162\bin"
问题:
在Eclipse 4.7.3a(Oxygen.3a)中,如果我以jUnit 4模式启动套件,则给定的测试套件会成功运行:右键单击>运行方式>运行配置>测试运行器:jUnit 4>运行)。
但是如果我开始作为Gradle测试(右键单击> Run As> Gradle Test),则不会运行,请参阅日食的控制台日志:
Click to download console log
还有 Gradle Executions日志:
Click here to download the gradle execution log
Click here for screenshot from Eclipse Gradle execution
此处还有 Gradle项目文件,包括build.gradle-,gradle-wrapper.properties-,gradle.properties-和settings.gradle文件:
Click here to download the minimal project structure
我认为gradle环境找不到给定的测试套件名称或使用错误的classpath /目录。