mirror of https://github.com/apache/lucene.git
IntelliJ configuration fixes:
- Make FacetTestCase abstract so that the IntelliJ test runner doesn't try to execute its tests under the facet module test run configuration - In the facet module configuration, drop source directory facet/src/examples/ and add source directory facet/src/resources/ - Add -Xmx256m to the Lucene core test run configuration to avoid OOM in a couple tests - Add resource pattern 'test-files:*' to .idea/compiler.xml, so that all files under */src/test-files/, regardless of file name/extension, will be copied over to the test output directory (previously .js files under solr/src/test-files/ were being excluded) git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1447154 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
28da8310b9
commit
17cdd3a46b
|
@ -3,6 +3,7 @@
|
||||||
<component name="CompilerConfiguration">
|
<component name="CompilerConfiguration">
|
||||||
<wildcardResourcePatterns>
|
<wildcardResourcePatterns>
|
||||||
<entry name="!*.(cpp|java|jflex|jflex-macro|jj|js|pl|py)"/>
|
<entry name="!*.(cpp|java|jflex|jflex-macro|jj|js|pl|py)"/>
|
||||||
|
<entry name="test-files:*"/>
|
||||||
</wildcardResourcePatterns>
|
</wildcardResourcePatterns>
|
||||||
</component>
|
</component>
|
||||||
<component name="JavacSettings">
|
<component name="JavacSettings">
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<module name="lucene-core-tests" />
|
<module name="lucene-core-tests" />
|
||||||
<option name="TEST_OBJECT" value="package" />
|
<option name="TEST_OBJECT" value="package" />
|
||||||
<option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$/idea-build/lucene/core" />
|
<option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$/idea-build/lucene/core" />
|
||||||
<option name="VM_PARAMETERS" value="-ea -Dlucene.version=5.0-SNAPSHOT -DtempDir=temp" />
|
<option name="VM_PARAMETERS" value="-Xmx256m -ea -Dlucene.version=5.0-SNAPSHOT -DtempDir=temp" />
|
||||||
<option name="TEST_SEARCH_SCOPE"><value defaultName="singleModule" /></option>
|
<option name="TEST_SEARCH_SCOPE"><value defaultName="singleModule" /></option>
|
||||||
</configuration>
|
</configuration>
|
||||||
<configuration default="false" name="Module analyzers-common" type="JUnit" factoryName="JUnit">
|
<configuration default="false" name="Module analyzers-common" type="JUnit" factoryName="JUnit">
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<exclude-output />
|
<exclude-output />
|
||||||
<content url="file://$MODULE_DIR$">
|
<content url="file://$MODULE_DIR$">
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/java" isTestSource="false" />
|
<sourceFolder url="file://$MODULE_DIR$/src/java" isTestSource="false" />
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/examples" isTestSource="false" />
|
<sourceFolder url="file://$MODULE_DIR$/src/resources" isTestSource="false" />
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/test" isTestSource="true" />
|
<sourceFolder url="file://$MODULE_DIR$/src/test" isTestSource="true" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/work" />
|
<excludeFolder url="file://$MODULE_DIR$/work" />
|
||||||
</content>
|
</content>
|
||||||
|
|
|
@ -35,7 +35,7 @@ import org.junit.BeforeClass;
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class FacetTestCase extends LuceneTestCase {
|
public abstract class FacetTestCase extends LuceneTestCase {
|
||||||
|
|
||||||
private static final IntEncoder[] ENCODERS = new IntEncoder[] {
|
private static final IntEncoder[] ENCODERS = new IntEncoder[] {
|
||||||
new SortingIntEncoder(new UniqueValuesIntEncoder(new VInt8IntEncoder())),
|
new SortingIntEncoder(new UniqueValuesIntEncoder(new VInt8IntEncoder())),
|
||||||
|
|
Loading…
Reference in New Issue