Export directory: overwrite or create new?
In test export mode user specifies the location where the exported content (html index, test bundles, sources, docs, etc) will be created (Let call it 'export directory').
After test export is complete, user can find what he wants in the export directory. He runs the exported tests, looks at sources and maybe he modifies the sources and rebuilds tests.
Then, user may wish to run the test suite in export mode once again. If he changes nothing in interview, the export directory this time is the same as previously. Naturally, the previous content is erased, just because it can conflict with newly exported content.
Now, the bad things happen: if user has changed something in the export directory between two test suite runs, these changes will be lost! So, it's non desirable to overwrite the previous exported content without warning.
Possible solution is to, each time the test suite has to be run in test export mode, ask user to specify new location of export directory. However there are use cases when creating new export directory each time is non desirable. If user runs his own HTTP server for provisioning of exported tests, he may wish to specify the root directory of his server as export directory, and use it for every test suite run.
Maybe this 'feature' should be configurable in some way, so that user could specify whether or not he wants to overwrite the previously exported content...
Please share your thoughts about this subject. I am going to fix this issue (Yeah, there is an issue about this: https://cqme.dev.java.net/issues/show_bug.cgi?id=38) and it would be great if we find the best solution!