From: Stefan F. <ste...@we...> - 2011-08-09 16:19:22
|
Erik & Brett, a quick test showed that it will take a little reconfiguration to get everything working. To make life easier for all, I suggest to compile a complete list of the items and possible solutions for them jointly in the top Rails directory. See below. Stefan Complete list of the files/folders inside: * folders: classes data doc html images lib rails tiles tools * files: 18xx.log 18xx_autosave.rails AUTHORS LICENSE LocalisedText.properties README Rails-format.xml build.xml buildinfo.xml log4j.properties manifest my.properties rails.bat rails.sh user.profiles For some files/folders I do not know exactly why they are created. * Folder rails: My preferred solution here is to create two directories src/ and unit/. Then move the rails/ folder to src/ and over time mirror the directory structure of rails/ inside unit/ for unit tests. I do not really favor to mirror the full java package names in the folder structure, but I can live with any outcome. * Folder test: I would like to keep the automated game tests (functional tests) under src/, as they are not unit tests and TestGame and TestGameBuilder could in principle be tested themselves by unit tests. UI tests and automated tests of revenue calculations would find their place there too. I do not know if the other classes inside test are used, otherwise I suggest removing them. * File 18xx_autosave.rails Gets created automatically from a running game as eclipse uses the folder as the current working directory. Should be either ignored or in a working directory outside of the repository. * File log4j.properties Stores the part of my.properties that have to do with logging and were not replaced by the new profile mechanism. Should be stored inside the repo to be available at the start of Rails. * File my.properties Legacy file to set configurations. Now replaced by the new profil mechanism. Can be removed. * File user.profiles Gets created automatically from a running Rails instance to store a map of profile names to the locations of the profile files for a user. Same as 18xx_autosave.rails On Monday, August 08, 2011 09:20:29 pm Erik Vos wrote: > > Is it ok with you (Erik & Brett) to create an additional layer with src/ > > and > > > junit/? > > I was actually wondering why Eclipse/Egit didn't let me create the src/ > layer, so basically I'm all for it. > But what are the consequences? I don't hope I'll have to set it all up yet > another time. > > > EclEmma coverage tool reported an overall code coverage of 40.2% after > > running all automated game tests (which is not too bad given that UI and > > algorithm packages are not tested by construction, the rails/game package > > itself has 73.8% coverage). > > > > My preferred mock library is JMock, any comments/preferences for this? > > No. > > Erik. > > > > --------------------------------------------------------------------------- > --- BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > The must-attend event for mobile developers. Connect with experts. > Get tools for creating Super Apps. See the latest technologies. > Sessions, hands-on labs, demos & much more. Register early & save! > http://p.sf.net/sfu/rim-blackberry-1 > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel |