Make WordPress Core

Opened 8 years ago

Closed 6 years ago

#1 closed enhancement (wontfix)

Allow wp-test multiple classes and exclusion of

Reported by: hakre Owned by: westi
Milestone: Legacy - Improve Framework Priority: normal
Component: Test Framework Keywords:


Improvement to the -t commandline switch.


Run all tests but TestLargeThemeDir, TestImportWP, TestWPQueryPosts, WPTestGalleryPost

$ wp-test -t "! TestLargeThemeDir, TestImportWP, TestWPQueryPosts, WPTestGalleryPost"

Only run Test_Clean_Pre and Test_Seems_UTF8

$ wp-test -t Test_Clean_Pre,Test_Seems_UTF8

Additionally a .cmd file helps to start right away on windows.

Related: http://core.trac.wordpress.org/ticket/12277, http://core.trac.wordpress.org/ticket/11867

Originally http://core.trac.wordpress.org/ticket/13407

Attachments (1)

from-hakre.patch (1.5 KB) - added by nacin 8 years ago.

Download all attachments as: .zip

Change History (5)

8 years ago

#1 @westi
8 years ago

  • Milestone set to Improve Test Framework

#2 @westi
8 years ago

  • Owner changed from somebody to westi
  • Status changed from new to accepted

#3 @dd32
7 years ago

See [339], [340], [341] for running multiple tests via -t

It accepts any of the following:

-t Test1 -t Test2 -t Test3
-t Test1,Test2,Test3
-t "Test1, Test2, Test3"
-t "Test1 Test2 Test3"

(Note, The latter 3 can't be combined with the first style)

None of those offer the ability to skip a test, or to include a wildcard of tests.

#4 @nacin
6 years ago

  • Resolution set to wontfix
  • Status changed from accepted to closed

New runner renders this moot. It's --group and --exclude-group, now.

Note: See TracTickets for help on using tickets.