Skip to content
This repository has been archived by the owner on Nov 21, 2017. It is now read-only.

TestNG Ant task classfilesets setting does not work for more than one class. #96

Open
GoogleCodeExporter opened this issue Apr 23, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Create TestNG ant command with classfilesets. classfilesets should have two 
test classes
2. run the command


What is the expected output? What do you see instead?
Tests should run successfully. I get an error - Invalid byte 2 of 2-byte UTF-8 
sequence.

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

Please provide any additional information below.
On debugging the issue, I found out that TestNGAntTask creates the -testclass 
argument values without a comma. But the TestNG class expects the classes 
delimited with a comma.

Original issue reported on code.google.com by [email protected] on 12 Aug 2010 at 11:58

@GoogleCodeExporter
Copy link
Author

Just wasted two hours trying to figure out what was wrong before I found this 
:-(

I guess the UTF error is because it is trying to parse the second class file as 
an XML file.  The example at the end of http://testng.org/doc/ant.html implies 
that this should work, so it's definitely a bug.

Original comment by [email protected] on 26 Aug 2010 at 4:24

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

Hi there!
Adam could u fix this bug? 
Because I know that using a higher version the bug is solved. However I am 
interested in solving this bug using testng 5.8.
Thanks in advantage

Original comment by [email protected] on 18 Oct 2010 at 3:46

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant