Bug 58967

Summary: use junit categories to exclude tests that need a gui
Product: JMeter - Now in Github Reporter: benoit.wiart
Component: MainAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: enhancement CC: p.mouawad
Priority: P2    
Version: Nightly (Please specify date)   
Target Milestone: ---   
Hardware: All   
OS: All   

Description benoit.wiart 2016-02-04 08:53:31 UTC
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
Comment 1 benoit.wiart 2016-02-04 08:54:22 UTC
PR https://github.com/apache/jmeter/pull/107
Comment 2 Philippe Mouawad 2016-02-04 21:42:55 UTC
Date: Thu Feb  4 21:11:13 2016
New Revision: 1728555

URL: http://svn.apache.org/viewvc?rev=1728555&view=rev
Log:
Bug 58967 : use junit categories to exclude tests that need a gui
#resolve #107
Bugzilla Id: 58967

Added:
    jmeter/trunk/test/src/org/apache/jmeter/junit/categories/
    jmeter/trunk/test/src/org/apache/jmeter/junit/categories/ExcludeCategoryFilter.java   (with props)
    jmeter/trunk/test/src/org/apache/jmeter/junit/categories/NeedGuiTests.java   (with props)
Modified:
    jmeter/trunk/test/src/org/apache/jmeter/control/TestOnceOnlyController.java
    jmeter/trunk/test/src/org/apache/jmeter/gui/util/TestMenuFactory.java
    jmeter/trunk/test/src/org/apache/jmeter/junit/JMeterTest.java
    jmeter/trunk/test/src/org/apache/jmeter/protocol/http/control/gui/TestHttpTestSampleGui.java
    jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/PackageTest.java
    jmeter/trunk/test/src/org/apache/jorphan/test/AllTests.java
    jmeter/trunk/xdocs/changes.xml
Comment 3 The ASF infrastructure team 2022-09-24 20:38:02 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/3819