Skip to content

Commit baafa28

Browse files
committed
Split download/build/install extension features
1 parent e74075a commit baafa28

3 files changed

Lines changed: 39 additions & 36 deletions

File tree

features/build-extensions.feature

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Feature: Extensions can be built with PIE
2+
3+
# pie build <ext>
4+
Example: An extension can be built
5+
When I run a command to build an extension
6+
Then the extension should have been built
7+
8+
# pie build <ext>
9+
Example: An extension can be built with warnings at PHP startup
10+
Given I have an invalid extension installed
11+
When I run a command to build an extension
12+
Then the extension should have been built
13+
14+
# pie build <ext> --with-some-options=foo
15+
Example: An extension can be built with configure options
16+
When I run a command to build an extension with configure options
17+
Then the extension should have been built with options
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Feature: Extensions can be downloaded with PIE
2+
3+
# pie download <ext>
4+
Example: The latest version of an extension can be downloaded
5+
When I run a command to download the latest version of an extension
6+
Then the latest version should have been downloaded
7+
8+
# pie download <ext>:<version>
9+
Scenario Outline: A version matching the requested constraint can be downloaded
10+
When I run a command to download version "<constraint>" of an extension
11+
Then version "<version>" should have been downloaded
12+
13+
Examples:
14+
| constraint | version |
15+
| 2.0.5 | 2.0.5 |
16+
| ^2.0 | 2.0.5 |
17+
18+
# pie download <ext>:dev-main
19+
@non-windows
20+
Example: An in-development version can be downloaded on non-Windows systems
21+
When I run a command to download version "dev-main" of an extension
22+
Then version "dev-main" should have been downloaded

features/install-extensions.feature

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,5 @@
11
Feature: Extensions can be installed with PIE
22

3-
# pie download <ext>
4-
Example: The latest version of an extension can be downloaded
5-
When I run a command to download the latest version of an extension
6-
Then the latest version should have been downloaded
7-
8-
# pie download <ext>:<version>
9-
Scenario Outline: A version matching the requested constraint can be downloaded
10-
When I run a command to download version "<constraint>" of an extension
11-
Then version "<version>" should have been downloaded
12-
13-
Examples:
14-
| constraint | version |
15-
| 2.0.5 | 2.0.5 |
16-
| ^2.0 | 2.0.5 |
17-
18-
# pie download <ext>:dev-main
19-
@non-windows
20-
Example: An in-development version can be downloaded on non-Windows systems
21-
When I run a command to download version "dev-main" of an extension
22-
Then version "dev-main" should have been downloaded
23-
24-
# pie build <ext>
25-
Example: An extension can be built
26-
When I run a command to build an extension
27-
Then the extension should have been built
28-
29-
Example: An extension can be built with warnings at PHP startup
30-
Given I have an invalid extension installed
31-
When I run a command to build an extension
32-
Then the extension should have been built
33-
34-
# pie build <ext> --with-some-options=foo
35-
Example: An extension can be built with configure options
36-
When I run a command to build an extension with configure options
37-
Then the extension should have been built with options
38-
393
# pie install <ext> --skip-enable-extension
404
Example: An extension can be installed without enabling
415
When I run a command to install an extension without enabling it

0 commit comments

Comments
 (0)