How to define a test group?

3,165 views
Skip to first unread message

PhatBaja

unread,
Dec 12, 2008, 5:50:42 PM12/12/08
to testng-users
When I add my test to a second group IntelliJ gives the following
warning "Group 'exception' is undefined". Does anyone know how to
define the group or how to solve this warning message?

This works fine:
@Test(groups = {"default"})
public void login() throws Throwable { ... }

This gives me the warning "Group 'exception' is undefined":
@Test(groups = {'default', 'exception'})
public void login() throws Throwable { ... }

Mark Derricutt

unread,
Dec 12, 2008, 7:41:01 PM12/12/08
to testng...@googlegroups.com
If you position the cursor over the group name, you'll get a small "intention bulb" with an option to add the group as a defined group.
--
"It is easier to optimize correct code than to correct optimized code." -- Bill Harlan

PhatBaja

unread,
Dec 12, 2008, 7:46:18 PM12/12/08
to testng-users
Clicking on the light bulb fixes the problem but I can't tell what
changed... do you know?

On Dec 12, 4:41 pm, "Mark Derricutt" <m...@talios.com> wrote:
> If you position the cursor over the group name, you'll get a small
> "intention bulb" with an option to add the group as a defined group.
>

Mark Derricutt

unread,
Dec 12, 2008, 7:48:44 PM12/12/08
to testng...@googlegroups.com
Nothing "changed" as such, other than you've told IDEA about a group name.  I added that feature to the plugin as often I found I'd often mistype a group name, so having a list of "known groups" for a project was handy, you should also see the groups auto-complete as well (although I think something broke here in IDEA 8 which I'm about to look at).


On Sat, Dec 13, 2008 at 1:46 PM, PhatBaja <csgyu...@gmail.com> wrote:

Clicking on the light bulb fixes the problem but I can't tell what
changed... do you know?


Reply all
Reply to author
Forward
0 new messages