vladblaj / testng-idea

Automatically exported from code.google.com/p/testng-idea
0 stars 0 forks source link

Test runner prints a couple of warnings #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. run any test

What is the expected output? What do you see instead?

In the "Run - TestTest" window I get

/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/bin/java
-classpath /Users/dave/Library/Application
Support/IntelliJIDEA60/testngrunner/lib/testng-5.5beta-jdk15.jar:/Users/dave/Lib
rary/Application
Support/IntelliJIDEA60/testngrunner/lib/testngrunner.jar:/System/Library/Framewo
rks/JavaVM.framework/Versions/1.5.0/Home/lib/deploy.jar:/System/Library/Framewor
ks/JavaVM.framework/Versions/1.5.0/Classes/dt.jar:/System/Library/Frameworks/Jav
aVM.framework/Versions/1.5.0/Classes/jce.jar:/System/Library/Frameworks/JavaVM.f
ramework/Versions/1.5.0/Home/lib/plugin.jar:/System/Library/Frameworks/JavaVM.fr
amework/Versions/1.5.0/Home/lib/sa-jdi.jar:/System/Library/Frameworks/JavaVM.fra
mework/Versions/1.5.0/Classes/charsets.jar:/System/Library/Frameworks/JavaVM.fra
mework/Versions/1.5.0/Classes/classes.jar:/System/Library/Frameworks/JavaVM.fram
ework/Versions/1.5.0/Classes/jconsole.jar:/System/Library/Frameworks/JavaVM.fram
ework/Versions/1.5.0/Classes/jsse.jar:/System/Library/Frameworks/JavaVM.framewor
k/Versions/1.5.0/Classes/laf.jar:/System/Library/Frameworks/JavaVM.framework/Ver
sions/1.5.0/Classes/ui.jar:/System/Library/Frameworks/JavaVM.framework/Versions/
1.5.0/Home/lib/ext/apple_provider.jar:/System/Library/Frameworks/JavaVM.framewor
k/Versions/1.5.0/Home/lib/ext/dnsns.jar:/System/Library/Frameworks/JavaVM.framew
ork/Versions/1.5.0/Home/lib/ext/localedata.jar:/System/Library/Frameworks/JavaVM
.framework/Versions/1.5.0/Home/lib/ext/sunjce_provider.jar:/System/Library/Frame
works/JavaVM.framework/Versions/1.5.0/Home/lib/ext/sunpkcs11.jar:/Applications/I
ntelliJ
IDEA 6.0.4.app/lib/idea_rt.jar org.testng.remote.RemoteTestNG -port 5000 -d
"output/testng-output" -sourcedir
"/Users/dave/svn/branches/testng-poc/src;/Users/dave/svn/branches/testng-poc/tes
t;"
/Users/dave/Library/Caches/IntelliJIDEA60/temp-testng-customsuite.xml
[org.testng.internal.annotations.JDK14AnnotationFinder] [WARNING] Invalid
source directory "/Users/dave/svn/branches/testng-poc/src ignored
[org.testng.internal.annotations.JDK14AnnotationFinder] [WARNING] Invalid
source directory " ignored
[Parser] Running:
  /Users/dave/Library/Caches/IntelliJIDEA60/temp-testng-customsuite.xml
(and the rest of the output is normal)

temp-testng-customsuite.xml has

<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Custom suite">
  <test verbose="1" name="myproj" annotations="JDK">
    <classes>
      <class name="TestTest"/>
    </classes>
  </test>
</suite>

I'm not aware of anything that's not working as it should; I'm just
reporting the warnings in case someone's interested (or in case they have
anything to do with that other bug where the output directory name has quotes)

What version of the product are you using? On what operating system?

Plugin 0.5.5, Idea 6.0.4, MacOS X 10.4.8

Original issue reported on code.google.com by dschweis...@gmail.com on 24 Jan 2007 at 8:04

GoogleCodeExporter commented 9 years ago
I edited TestNGRunnableState to remove the " around -sourcedir's argument. I 
made
another source dir for my module with spaces in the name. I reran the test. The 
new
source dir shows up in the list. The test runs fine. If the " were needed (at 
least
on this platform) I imagine the runner would think part of the sourcedir list 
were
the suite.xml and blow up. So are the " needed on other OSes? Maybe they can 
just be
removed.

Original comment by dschweis...@gmail.com on 14 Feb 2007 at 1:20