|
From: Robert S. <rob...@gm...> - 2007-04-11 12:08:34
|
Ok. There is one problem with this. The XUL UI creates all of the folders in the fully qualified name. So this limits you to defining the source and the test path as the same thing and they have to be defined as the parent directory for your library. There is no option for "TestName" either. So your tests and source have to be in the same folder? Yuck. But I have a folder named tests in my directory structure, so something weird happens. Say my package name is com.somesite, and I have a folder ./com/somesite/tests. Then I do as you suggest, clicking the Create button and clicking "No" to avoid overwriting my class. But then I wind up with ./com/somesite/tests/com/somesite/MyClassTest.as. This is totally unexpected. Is this how the system is supposed to work? Thanks, Robert On 4/10/07, Luke Bayes <lb...@pa...> wrote: > > > I have an already existing library that I want to start adding tests to. > > I can't seem to make the ASUnit XUL UI pick up on the package names in my > > library. Is there some way to do this that I missed? > > > > The XUL UI is a bit confusing when it comes to creating TestCases for > existing classes. You'll want to get it set up with the source path and test > path, and then (strangely), tell it to create a class using a fully > qualified *existing* class name. You should be prompted before it overwrites > the file. At this point, you can choose to ignore the class-creation step, > while allowing the TestCase to be created properly. > > I have used this feature many times and fully trust it, but just for good > measure, you should be certain that your code is checked into version > control and up to date. > > Does that answer your question? > > > Thanks, > > Luke Bayes > www.asunit.org > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Asunit-users mailing list > Asu...@li... > https://lists.sourceforge.net/lists/listinfo/asunit-users > > |