Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- XML:
- <project default="test">
- <path id="cp">
- <pathelement location="C:/testng-6.0.1/testng-6.0.1.jar"/>
- </path>
- <taskdef name="testng" classpathref="cp" classname="org.testng.TestNGAntTask" />
- <target name="test">
- <testng classpathref="cp" groups="deposit">
- <classfileset dir="bin/" includes="Account.class"/>
- </testng>
- </target>
- </project>
- Given that C:\Temp\testNG\testng_test\bin has a file called Account.class, why would ant spit out
- C:\Temp\testNG\TESTNG~1>ant
- Buildfile: C:\Temp\testNG\TESTNG~1\build.xml
- test:
- [testng] Exception in thread "main" org.testng.TestNGException:
- [testng] Cannot load class from file: C:\Temp\testNG\TESTNG~1\bin\Account.cla
- ss
- [testng] at org.testng.internal.ClassHelper.fileToClass(ClassHelper.java:
- 585)
- [testng] at org.testng.TestNG.configure(TestNG.java:1211)
- [testng] at org.testng.TestNG.privateMain(TestNG.java:1172)
- [testng] at org.testng.TestNG.main(TestNG.java:1146)
- [testng] The tests failed.
- BUILD SUCCESSFUL
- Total time: 0 seconds
Add Comment
Please, Sign In to add comment