Functional Tests JUnit: Filtering Multiple Categories based Tests

39 views
Skip to first unread message

Arup

unread,
Jun 19, 2008, 6:13:18 PM6/19/08
to junitext-dev
Hi all,
We're trying to implement a JUnit-based solution that would allow us
to designate a test as being a functional test, to be run as part of a
tasks being run in ANT/Maven.

To keep it simple we need a way to tell unit tests apart from
functional tests. We like something annotation-based if possible. So
that we can run the test based on Category.

And we need to be able to run them based on Multiple Category.

Sarthak

unread,
Jun 19, 2008, 6:21:59 PM6/19/08
to junitext-dev, vvill...@ebay.com
Yes. Arup and I are working together and we found that there was an
easy way to assign a single Category to a test and then run tests
belonging to a particular category in a class.
Currently its possible to add

@Category ("A") to a junit test.
We would like to ask if someone is working on a way to assign multiple
categories
like
@Category("A", "B", "C") to a junit test.

Also, it would be nice to have a functionality in Ant to specify the
category of test cases we want to run in the <junit> task.
If this has not been done, I guess we may take the initiative to
provide this.
Thanks
Sarthak
Reply all
Reply to author
Forward
0 new messages