Passing arguments to Junit classes from ant?
From: Roy Smith (roy_at_panix.com)
Date: 04/30/04
- Next message: Andrew Thompson: "Re: Princess Diana Nude, Unseen Photos from The Lost Archives 1892"
- Previous message: Sudsy: "Re: J2EE Development/Production Environment Advice"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 30 Apr 2004 11:02:00 -0400
I'm using Junit under ant. Some of my test cases need to read files
which contain test data. I don't mind imbedding the file names in the
test cases, but I'd like to have the name of the directory where the
data files are stored parameterized in the build.xml file.
What's the best was to pass information like that from build.xml down
into the test cases? I was sort of under the impression that ant
properties showed up as Java properties accessable via
System.getProperty(), but they don't seem to.
- Next message: Andrew Thompson: "Re: Princess Diana Nude, Unseen Photos from The Lost Archives 1892"
- Previous message: Sudsy: "Re: J2EE Development/Production Environment Advice"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|