Skip to content

Commit c7eb2e7

Browse files
Copilotswissspidy
andcommitted
Add test scenarios demonstrating @skip-<dbtype> tags in features/testing.feature
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
1 parent 7870314 commit c7eb2e7

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

features/testing.feature

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,34 @@ Feature: Test that WP-CLI loads.
8080
"""
8181
6.3.1
8282
"""
83+
84+
@skip-mysql
85+
Scenario: Skip on MySQL databases
86+
Given a WP install
87+
88+
When I run `wp eval 'echo "This should only run on MariaDB or SQLite";'`
89+
Then STDOUT should contain:
90+
"""
91+
This should only run on MariaDB or SQLite
92+
"""
93+
94+
@skip-mariadb
95+
Scenario: Skip on MariaDB databases
96+
Given a WP install
97+
98+
When I run `wp eval 'echo "This should only run on MySQL or SQLite";'`
99+
Then STDOUT should contain:
100+
"""
101+
This should only run on MySQL or SQLite
102+
"""
103+
104+
@skip-sqlite
105+
Scenario: Skip on SQLite databases
106+
Given a WP install
107+
108+
When I run `wp eval 'echo "This should only run on MySQL or MariaDB";'`
109+
Then STDOUT should contain:
110+
"""
111+
This should only run on MySQL or MariaDB
112+
"""
113+

0 commit comments

Comments
 (0)