Skip to content

Commit 2d16826

Browse files
committed
Merge pull request #21 from ddelnano/add-tests-for-server-config
Add tests for server config
2 parents 9319578 + f4c1883 commit 2d16826

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

CHANGES

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Changes from 1.1.4 to 1.1.5
2+
3+
dredd-hooks-php command can now accept the flags --port, --host and --force.
4+
5+
The host and port flags are obviously to override the default of localhost and 61321 respectively. The force flag allows the server to start regardless if some other service is already listening on that port.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Feature: Configuring the server
2+
3+
@announce
4+
Scenario: Starting the server with --force flag if port is blocked
5+
Given I run `dredd-hooks-php` interactively
6+
When I wait for output to contain "Starting"
7+
Then I run `dredd-hooks-php --force` interactively
8+
9+
@announce
10+
Scenario: Starting the server on non standard port
11+
Given I run `dredd-hooks-php --port 1123` interactively
12+
When I wait for output to contain "Starting"
13+
Then It should start listening on localhost port "1123"
14+

0 commit comments

Comments
 (0)