Ticket #1 (accepted enhancement)

Opened 2 years ago

Last modified 14 months ago

Allow wp-test multiple classes and exclusion of

Reported by: hakre Owned by: westi
Priority: major Milestone: Improve Test Framework
Component: Test Framework Version:
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

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

Change History

Changed 2 years ago by nacin

comment:1 Changed 2 years ago by westi

  • Milestone set to Improve Test Framework

comment:2 Changed 2 years ago by westi

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

comment:3 Changed 14 months ago by dd32

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.

Note: See TracTickets for help on using tickets.