XpdWiki
Set your name in
UserPreferences Edit this page Referenced by
JSPWiki v2.0.52
![]() ![]() |
I think people doing Test First Programming will be particularly interested in one of the latest IbmEclipse features.
For instance take this code snippet from testFred.java: Fred aFred = new Fred("moo"); aFred.walk();
MpC Fantastic: one eclipse oponent was telling me InteliJ? did this and I didn't have an answer. I'd never thought to click those new things. I have to say that so many things have been added, I've had to re-read all the preference and option screens to discover all the new features, these eclipse wiki pages are certainly helping me discover new ways of using this continually evolving tool. -- OliBye My only beef is that it puts it in the current package. Which is always a test package, if you're doing TFD -- OliBye On the other hand, if you write a line in a test like assertTrue(foo.bar(baz,bif)); and click on the lightbulb inviting you to create Foo.bar(Baz,Bif) (which is a nice feature to have) declares bar() as returning String, not boolean (which is irksome). On an associated note, can anyone offer any suggestions for applying more control to the built-in JUnit support in Eclipse? I can't seem to find a way of making it save/compile any open editors before running, for example. I also have problems with any tests which access the filesystem, as I'm not able to set (or even easily tell!) which working directory it uses when running JUnit. --FrankCarver The working directory is the workspace directory, i.e. the one above your projects. I had to discover this by writing a test which created a file then searching for the file!. W.r.t to saving all files: In the Debug preferences "Build (if required) before launching" will save code. If you're talking about other sorts of files, then in the Workspace preference you can "Save all modified resources automatically prior to manual build". Then do a manual build I suppose. I've never had a problem with this. -- OliBye =====
|