I meant to say junit, not nunit below. So, a friend suggested trying the maven build instead of ant. I run the “Apache Solr Core tests” and there are failures.
Are my expectations wrong that all tests should pass? Is there a subset of tests that are really the tests that matter? Maybe the only tests that matter are the ones in the subdirectory “Solr”? I don’t know if it is my development environment, my expectations, or what I need to focus on. Thank you. > On Apr 19, 2021, at 9:32 AM, Phill Campbell <sirgilli...@yahoo.com.INVALID> > wrote: > > This is not an Apache Solr question. This is a developer environment > question. I apologize for my lack of knowledge with ANT. > > > $ant common.test > > ... > > -test: > [junit4] <JUnit4> says jolly good day! Master seed: 3510B76A25B8399C > > BUILD FAILED > /development/solr/lucene/common-build.xml:1599: The following error occurred > while executing this line: > /development/solr//lucene/common-build.xml:1126: Reference junit.classpath > not found. > > Total time: 3 minutes 20 seconds > > > > I have tried adding a CLASSPATH environment variable. > I have tried placing nunit jars in /Library/Java/Exentions and the “user” > equivalent location as well. > > > > > Common-build.xml > > Line 1126 is the “>” on the last line of this snippet: > > <junit4:junit4 > taskName="junit4" > dir="@{workDir}" > tempdir="@{workDir}/temp" > maxmemory="${tests.heapsize}" > > statsPropertyPrefix="junit4.stats" > > parallelism="@{threadNum}" > > printSummary="true" > haltonfailure="${tests.haltonfailure}" > failureProperty="tests.failed" > > dynamicAssignmentRatio="${tests.dynamicAssignmentRatio}" > shuffleOnSlave="true" > leaveTemporary="${junit4.leaveTemporary}" > seed="${tests.seed}" > onNonEmptyWorkDirectory="wipe" > > heartbeat="${tests.heartbeat}" > uniqueSuiteNames="false" > > debugstream="false” >> > > > > Line 1599 (<test-macro threadNum="${tests.jvms.override}" />) > > <!-- Run the actual tests (must be wrapped with -init-totals, -check-totals) > --> > <target name="-test"> > <mkdir dir="${junit.output.dir}"/> > <test-macro threadNum="${tests.jvms.override}" /> > </target> > > > I don’t know if I have a system configuration problem, or if I am running the > ANT scripts incorrectly. > > Any help appreciated. >