-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from ddelnano/add-tests-for-server-config
Add tests for server config
- Loading branch information
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Changes from 1.1.4 to 1.1.5 | ||
|
||
dredd-hooks-php command can now accept the flags --port, --host and --force. | ||
|
||
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Feature: Configuring the server | ||
|
||
@announce | ||
Scenario: Starting the server with --force flag if port is blocked | ||
Given I run `dredd-hooks-php` interactively | ||
When I wait for output to contain "Starting" | ||
Then I run `dredd-hooks-php --force` interactively | ||
|
||
@announce | ||
Scenario: Starting the server on non standard port | ||
Given I run `dredd-hooks-php --port 1123` interactively | ||
When I wait for output to contain "Starting" | ||
Then It should start listening on localhost port "1123" | ||
|