... Are you sure it works when you mix JUnit 3 features (extending TestCase) with JUnit 4 features (using annotations)? Cheers, James...
19403
Narasimha_Tadepalli@...
tn_rao
Jun 1, 2007 1:05 pm
HI All Could somebody advice me how to generate JUnit reports without using ANT? Thanks Narasimha [Non-text portions of this message have been removed]...
19404
j_cumps
Jun 1, 2007 1:40 pm
Narasimha, The only option I know of is via Maven. Maven 1: http://maven.apache.org/maven-1.x/plugins/junit- report/changes-report.html Maven 2:...
19405
James Abley
taboozizi
Jun 1, 2007 2:22 pm
... Could you tell us more about why you are unable to use ANT, so that we are better equipped to advise on alternatives? Cheers, James...
19406
Narasimha_Tadepalli@...
tn_rao
Jun 1, 2007 2:49 pm
Hi James I didn't say I am unable to use ANT. My purpose here is I would like to execute remote JUnit tests through java, any where I am not using ANT except...
19407
James Abley
taboozizi
Jun 1, 2007 3:29 pm
... Hi Narasimha, My point being that your question read (at least to me) as a solution requiring input on the implementation, rather than a problem in context...
19408
Narasimha_Tadepalli@...
tn_rao
Jun 1, 2007 7:24 pm
Looks like maven is nice alternative. Thanks Jan. From: junit@yahoogroups.com [mailto:junit@yahoogroups.com] On Behalf Of j_cumps Sent: Friday, June 01, 2007...
19409
Ray Vanderborght
ttftestrayv
Jun 1, 2007 7:25 pm
I have a project with tests that all pass for me locally, but then they error out on our build machine. I've tracked the problem down to the ant versions...
19410
Narasimha_Tadepalli@...
tn_rao
Jun 1, 2007 7:25 pm
Hi James Thanks for your inputs and appreciate you interest in understanding the situation. Ok, what I did is, I developed some parameterized JUnit tests and...
19411
J. B. Rainsberger
nails762
Jun 1, 2007 7:45 pm
... Chapter 5 (I believe) of the book _JUnit Recipes_ ("Working with test data") would help you here. Scott Stirling wrote about this quite deeply. My first...
19412
J. B. Rainsberger
nails762
Jun 1, 2007 7:46 pm
... You can't. I suggest pulling the setup code one more superclass higher, making that superclass abstract, then adding one subclass that contains the setup...
19413
Ole Ersoy
ole.ersoy@...
Jun 1, 2007 11:55 pm
Thanks JB. It's excellent advice. David also suggested it and it's running beautifully. Thanks again, - Ole...
19414
russgold@...
russgold
Jun 2, 2007 4:54 am
Please, picture document. [Non-text portions of this message have been removed]...
19415
James Abley
taboozizi
Jun 2, 2007 7:11 am
... Sounds more like an ANT issue, which should be reported to the apache ant-users / ant-devs list? James [Non-text portions of this message have been...
19416
hperryman
Jun 4, 2007 1:27 am
We are using JUnit 3.8.1 and have our code in /src and /test trees as widely suggested in JUnit literature. However, we also have test code that is not using...
19417
perryn_fowler
Jun 4, 2007 1:27 am
I use JUnit to run in-container funtional testing of my web apps. When using JUnit 3, I used to use the technique decribed here ...
19418
perryn_fowler
Jun 4, 2007 12:57 pm
To answer my own question, it turns out that if you use @RunWith(Suite.class) on a class and add @BeforeClass and @AfterClass to that class, then they will run...
19419
Patrick Breucking
marquies_666
Jun 4, 2007 4:12 pm
Hi All, my topic is not really JUnit relevant, but you are the test-freaks and I think you can help me! I have to test some methods, wich generate tables from...
19420
Lasse Koskela
lassekoskela
Jun 4, 2007 5:01 pm
Hi Patrick, ... What do you mean by "static values"? If you're generating the tables, isn't the database content created during and by the test itself? Lasse ...
19421
Patrick Breucking
marquies_666
Jun 4, 2007 7:41 pm
Hi Lasse, the "static values" in the databse should never change before, while or after a test. In operation, the code reads values from an external database....
19422
Stephen Smith
steve@...
Jun 4, 2007 8:10 pm
Eclipse is a lot smarter than Ant at dynamically discovering source code/config, which can be a good thing or bad thing. Ant has a far simpler discovery...
19423
hperryman
Jun 5, 2007 12:28 pm
Ah, bummer, that would make build script maintenance much more tricky. I'm surprised though: don't people often write helper classes for testing? If so, where...
19424
Ray Vanderborght
ttftestrayv
Jun 5, 2007 12:34 pm
Yup, it's an ant issue. I'll answer it here in case anyone runs into it and searches this list's archives in the future. It boils down to my project having...
19425
Lasse Koskela
lassekoskela
Jun 5, 2007 3:36 pm
Hi Heath, A lot of people write "helper classes for testing" and they put them into what you have labeled "/test" source tree. I suspect that your Ant script...
19426
Lasse Koskela
lassekoskela
Jun 5, 2007 3:43 pm
Hi Patrick, ... Yeah, this sounds like a good use for @BeforeClass and @AfterClass. Lasse -- Lasse Koskela * Author of "Test Driven" (Manning Publications,...
19427
slawalata
k4mpret77
Jun 6, 2007 3:00 pm
Greetings, I am trying to find how I can test a class which has collaboration with a singleton or static class. I have attached the source code in this email....
19428
hperryman
Jun 6, 2007 9:18 pm
Here is the part of the script that seems relevant, can you see anything that I'm missing? Thanks very much for your help!!! Heath <property...
19429
Lasse Koskela
lassekoskela
Jun 6, 2007 9:35 pm
Hello Heath, Could you still list the contents of this classpath entry: <classpath refid="junit.classpath" /> In order for Ant's JUnit task to see all the...
19430
p_thanuja82
Jun 7, 2007 11:53 am
Hi All, In my test cases the excepted value will be changing frequently.so that i have to in to my code and have to change the excepted value. Instead of doing...
19431
p_thanuja82
Jun 7, 2007 12:13 pm
Hi All, In my test case the excepted value will be changed frequently. so I have to change my excepted data each and every time in my code. I dont want to go...