You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@archiva.apache.org by m....@web.de on 2016/09/14 10:09:32 UTC
UnitTests in IDE
Hi,
i would like to know, if it's possible to run single unit test methods of archiva in the IDE.
Running the tests with the maven test lifecycle method works fine, but if I try to run it
directly with Intellij, I get some strange problems that may relate to the classpath.
Seems that the IDE IntelliJ does not use the same classpath as maven uses for running the tests.
If someone has a setup that works, please tell me.
Greetings
Martin
Re: UnitTests in IDE
Posted by Martin Stockhammer <m....@web.de>.
Hi,
the last attempt showed errors, that userjdo class cannot be persisted, because the class contained no persistence methods. I think that's because the persistence library does some bytecode enhancement and either this does not work in my IDE or the class path for unit test run is not correct.
But maybe it has to do with the Jdk issue as mentioned in the ticket. I will try it with another Jdk.
Greetings
Martin
Am 16. September 2016 05:24:48 MESZ, schrieb Olivier Lamy <ol...@apache.org>:
>Hi
>what sort of errors?
>I have some errors too but not for all which is weird.
>Some are related to the spring plugin which cannot see some xml
>files...
>
>
>On 14 September 2016 at 20:09, <m....@web.de> wrote:
>
>> Hi,
>>
>> i would like to know, if it's possible to run single unit test
>methods of
>> archiva in the IDE.
>> Running the tests with the maven test lifecycle method works fine,
>but if
>> I try to run it
>> directly with Intellij, I get some strange problems that may relate
>to the
>> classpath.
>> Seems that the IDE IntelliJ does not use the same classpath as maven
>uses
>> for running the tests.
>> If someone has a setup that works, please tell me.
>>
>> Greetings
>>
>> Martin
>>
>
>
>
>--
>Olivier Lamy
>http://twitter.com/olamy | http://linkedin.com/in/olamy
--
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.
Re: UnitTests in IDE
Posted by Olivier Lamy <ol...@apache.org>.
Hi
what sort of errors?
I have some errors too but not for all which is weird.
Some are related to the spring plugin which cannot see some xml files...
On 14 September 2016 at 20:09, <m....@web.de> wrote:
> Hi,
>
> i would like to know, if it's possible to run single unit test methods of
> archiva in the IDE.
> Running the tests with the maven test lifecycle method works fine, but if
> I try to run it
> directly with Intellij, I get some strange problems that may relate to the
> classpath.
> Seems that the IDE IntelliJ does not use the same classpath as maven uses
> for running the tests.
> If someone has a setup that works, please tell me.
>
> Greetings
>
> Martin
>
--
Olivier Lamy
http://twitter.com/olamy | http://linkedin.com/in/olamy