Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

SMILA/Development Guidelines/Howto set up test environment

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 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 File: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

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:

LoggingInEclipseAll.png

Copyright © Eclipse Foundation, Inc. All Rights Reserved.