logo       

Re: junit and eclipse plugin: msg#00500

lang.scala

Subject: Re: junit and eclipse plugin


David,

Here is the .project and .classpath files. The only part I had to hand edit
is bolded. For some reason the junit runner that is with eclipse, can't see
the class files produced by the scala compiler until you create another
folder and link it to the default bin directory. I was using Junit 3.

Hope this works.

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>test-scala</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>ch.epfl.lamp.sdt.core.scalabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>ch.epfl.lamp.sdt.core.scalanature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
<linkedResources>
<link>
<name>scala-output</name>
<type>2</type>

<location>/Users/sbendiola/workspace/scala/test-scala/bin</location>
</link>
</linkedResources>
</projectDescription>

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con"
path="ch.epfl.lamp.sdt.launching.SCALA_CONTAINER"/>
<classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="scala-output"/>
<classpathentry kind="output" path="bin"/>
</classpath>

David Pollak-2 wrote:
>
> steve.bendiola <steve.bendiola <at> gmail.com> writes:
>
>>
>>
>> Arco,
>>
>> I was able to get the eclipse junit runner to run my scala junit tests.
>> You
>> have to manually edit the .project file and add the java build command
>> and
>> nature to the scala project. Since the scala plugin will output into the
>> same directory as the java builder, you will have to create a link to the
>> output directory and add it to the library classpath.
>>
>> If you need more info let me know.
>
> Can you give examples of the "before" and "after" .project files and
> before and
> after for the library classpath?
>
> Thanks!
>
>
>
>

--
View this message in context:
http://www.nabble.com/junit-and-eclipse-plugin-tf1725248.html#a8701389
Sent from the Scala mailing list archive at Nabble.com.




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise