GitHub user benbenw opened a pull request:
https://github.com/apache/jmeter/pull/107
Bug 58967 : use junit categories to exclude tests that need a gui
see https://github.com/junit-team/junit/wiki/Categories
this is only available for junit 4 tests and not for junit 3 suite style
tests.
A test can be annotated with @Category(NeedGuiTests.class) and it will
not be executed in headless mode
Also remove the AllTests#suite implementation as it's not compatible
with junit4 tests
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/benbenw/jmeter junitcat2
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/jmeter/pull/107.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #107
----
commit e2b1be2aa3f2a0870e8e65f4b5c6024e1a7188cc
Author: benoit <[email protected]>
Date: 2016-02-03T17:02:20Z
use junit categories
(https://github.com/junit-team/junit/wiki/Categories) to exclude test
that need a gui
this is only available for junit 4 tests and not for junit 3 suite style
tests.
A test can be annotated with @Category(NeedGuiTests.class) and it will
not be executed in headless mode
Also remove the AllTests#suite implementation as it's not compatible
with junit4 tests
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---