[mary-dev] testing a NLP component
Marc Schroeder
marc.schroeder at dfki.de
Mon May 16 16:23:42 CEST 2011
excellent, this is progress.
Now you need to define the system property "mary.base". Do the following:
In the Eclipse menu, go to "Run"->"Run Configurations..." and select
your "preprocessFRtest" target from among the "JUnit" targets on the
left. Then, go to the "Arguments" tab, and enter into the "VM arguments":
-Dmary.base=/path/to/workspace/OpenMary
Apply, and try again.
What this does is, it tells the MARY code where on the file system to
find its files.
Best,
Marc
On 16.05.11 16:19, fxavier at ircam.fr wrote:
> Thanks,
>
> But again the test doesn't success. However, the code you gave me make
> sense. It is impossible to copy/paste what's on the left pannel, so here's
> another screenshot of the situation.
> Thanks a lot for your help,
>
> Florent
>
>
>
>
>
>
>> Ah, now we can make progress. You are mixing Junit 3 and 4: your tests
>> are written according to Junit 4 (@Test ...), but your exception is
>> thrown by Junit 3 classes -- I think it is because you extend TestCase.
>>
>> Try changing
>>
>> public class preprocessorFRtest extends TestCase {
>>
>> to
>>
>> public class preprocessorFRtest {
>>
>>
>>
>> And remove any import statements for junit.framework.... from the top of
>> your file.
>>
>> Then run the junit runner again.
>>
>>
>> Best,
>> Marc
>>
--
Dr. Marc Schröder, Senior Researcher at DFKI GmbH
Project leader for DFKI in SSPNet http://sspnet.eu
Team Leader DFKI TTS Group http://mary.dfki.de
Editor W3C EmotionML Working Draft http://www.w3.org/TR/emotionml/
Portal Editor http://emotion-research.net
Homepage: http://www.dfki.de/~schroed
Email: marc.schroeder at dfki.de
Phone: +49-681-85775-5303
Postal address: DFKI GmbH, Campus D3_2, Stuhlsatzenhausweg 3, D-66123
Saarbrücken, Germany
--
Official DFKI coordinates:
Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
Trippstadter Strasse 122, D-67663 Kaiserslautern, Germany
Geschaeftsfuehrung:
Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster (Vorsitzender)
Dr. Walter Olthoff
Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
Amtsgericht Kaiserslautern, HRB 2313
More information about the Mary-dev
mailing list