Skip to content

Commit

Permalink
Merge pull request #21 from ddelnano/add-tests-for-server-config
Browse files Browse the repository at this point in the history
Add tests for server config
  • Loading branch information
ddelnano committed May 15, 2016
2 parents 9319578 + f4c1883 commit 2d16826
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGES
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.
14 changes: 14 additions & 0 deletions features/server_configuration.feature
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"

0 comments on commit 2d16826

Please sign in to comment.