|
|
(4 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
− | | + | #REDIRECT [[SMILA/Documentation/HowTo/Create_a_test_bundle_(plug-in)]] |
− | == Howto set up test environment ==
| + | |
− | | + | |
− | === Introduction ===
| + | |
− | | + | |
− | There are no specific steps to do for a test environment. You only have to follow the steps, that are describted in [[SMILA/Howto set up dev environment|Howto set up dev environment]]. And you have to develop your tests with Junit 3.8, because at the moment the build process is running the tests with Junit 3.8, too.
| + | |
− | | + | |
− | === Commons Logging for Tests (Junit) in Eclipse ===
| + | |
− | | + | |
− | Please add a log4j.properties to your Eclipse Configuration Folder:
| + | |
− | | + | |
− | sample configuration [[Image:Log4j.properties.zip|log4j.properties.zip]]
| + | |
− | | + | |
− | and add to every Junit Plugin Test Launch Configuration the following VM Arguments:
| + | |
− | | + | |
− | -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger
| + | |
− | -Dlog4j.configuration=file:${eclipse_home}configuration/log4j.properties -Xms40m -Xmx256m
| + | |
− | | + | |
− | [[Image:LoggingInEclipse.png]]
| + | |
− | | + | |
− | | + | |
− | Eclipse can be configured that it will add this lines every time a Junit Test Plugin Launch Configuration is created.
| + | |
− | | + | |
− | Following Configuration is needed for this:
| + | |
− | | + | |
− | [[Image:LoggingInEclipseAll.png]]
| + | |