WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 22 months 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:
Cc:

Description

Improvement to the -t commandline switch.

Examples:

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 4 years ago.

Download all attachments as: .zip

Change History (5)

nacin4 years ago

comment:1 westi4 years ago

  • Milestone set to Improve Test Framework

comment:2 westi4 years ago

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

comment:3 dd323 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.

comment:4 nacin22 months 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.