You can create JUnit run configurations in IDEA and run/debug a single unit
test. You will need to specify class name of the test.

[image: Inline image 1]

Best Regards

On Fri, Jun 10, 2016 at 12:53 AM, Josh McKenzie <jmcken...@apache.org>
wrote:

> Does ant generate-idea-files
> <https://wiki.apache.org/cassandra/RunningCassandraInIDEA> cover this?
>
> On Thu, Jun 9, 2016 at 11:26 AM, Jan Kotek <dis...@kotek.net> wrote:
>
> > Hi,
> >
> > I would like to run and debug unit tests directly in Intellij Idea.
> > Current Ant runner does not work for me.
> >
> > I studied the problem a bit. Tests use java-agent that complicates it a
> > bit. Also I would like to make minimal changes. So far my approach is:
> >
> > - Run special test case under regular Ant
> >
> > - It saves JVM parameters generated by Ant (properties, JVM args, java
> > agents, classpath) into text file
> >
> > - Invoke Ant target to convert this text file into Run Configuration
> > for IDE
> >
> > - Click Run in Idea... :-)
> >
> > I would be happy to polish it a bit more. Would you merge such patch?
> >
> > Regards,
> > Jan Kotek
> >
>

Reply via email to