lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Solr Wiki] Update of "HowToContribute" by RobertMuir
Date Tue, 24 Aug 2010 14:35:30 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "HowToContribute" page has been changed by RobertMuir.
The comment on this change is: add note about enabling -ea for junit tests in eclipse.


  Do the same thing to create a new Java project for ~/apache/trunk/solr.
  DO NOT BE SURPRISED IF SOME TESTS FAIL IN THE IDE. There are some anomalies when running
Junit tests for these projects in an IDE. Some of them are already cleaned up, but others
may still fail when run in an IDE. The definitive case for whether a test fails or not is
running it as an Ant task.
+ === Enabling Assertions for unit tests in Eclipse ===
+ By default, Eclipse does not run test with assertions enabled. This causes some tests to
run incorrectly in Eclipse and excludes some checks in the source code.
+ Change this by checking the box "Add '-ea' to VM arguments when creating a new JUnit launch
+ This checkbox is available under Windows>Preferences>Java>JUnit
  === Installing the code style file ===
  Lucene and SOLR have a common code style preferences. Install one in your Eclipse and set
it as the default for the project. Do this by:

View raw message