In the testng.xml you can exclude groups:
<test name="Regression1">
<groups>
<exclude name="brokenTests" />
<include name="checkinTests" />
</run>
</groups>
...
and in eclipse you create a test runner to run a specified testng.xml file. So
you could create an xml with only your unit tests.
This is also the reason I asked because I wanted to know if other people tagged
all their unit tests with a "unit" group or something so that they could easily
run them by group without having to use exclusions.
On Thu, 2007-02-01 at 11:37 -0800, Howard Lewis Ship wrote:
> I meant from inside Eclipse, or as specified in testng.xml.
>
> I haven't upgraded my version of the plugin, perhaps this is a feature
> they've added. I also want to see if parallel works properly in a more
> recent version.
>
> On 2/1/07, James Carman <[EMAIL PROTECTED]> wrote:
> > Have you tried -excludegroups <comma-separated list of group names>?
> > I think that works.
> >
> > On 2/1/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:
> > > I really only structure things in two ways: fast vs. slow, aka default
> > > vs. integration.
> > >
> > > I think if I was building an application, I may add additional groups
> > > to cover tests that need special setup to run (assuming I couldn't do
> > > that myself).
> > >
> > > I wish TestNG had an option to exclude named groups from a run, and
> > > run everything else (including those outside a group). T5 core now
> > > has 689 tests and takes nearly a minute to run. On the other hand,
> > > most of that time is spent inside integration tests and without those
> > > I don't really trust that the framework operates correctly so there's
> > > no way to win!
> > >
> > > On 2/1/07, Dan Adams <[EMAIL PROTECTED]> wrote:
> > > > hey guys, just wondering. if you use testng how do you normally
> > > > structure your groups? Do you always specific a group for unit tests or
> > > > do you not?
> > > >
> > > > --
> > > > Dan Adams
> > > > Senior Software Engineer
> > > > Interactive Factory
> > > > 617.235.5857
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> > > --
> > > Howard M. Lewis Ship
> > > TWD Consulting, Inc.
> > > Independent J2EE / Open-Source Java Consultant
> > > Creator and PMC Chair, Apache Tapestry
> > > Creator, Apache HiveMind
> > >
> > > Professional Tapestry training, mentoring, support
> > > and project work. http://howardlewisship.com
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
--
Dan Adams
Senior Software Engineer
Interactive Factory
617.235.5857
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]