Skip to content

Commit

Permalink
Better test coverage for datastore options
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMarex committed Apr 6, 2018
1 parent 92c0f77 commit fb1540e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions features/options/datastore/datastore.feature
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Feature: osrm-datastore command line options
When I try to run "osrm-datastore --list"
Then it should exit successfully
And stdout should contain "test_dataset_42/static"
And stdout should contain "test_dataset_42/updatable"

Scenario: osrm-datastore - Only metric update should work
Given the speed file
Expand All @@ -31,3 +32,13 @@ Feature: osrm-datastore command line options
Then it should exit successfully
When I try to run "osrm-datastore {processed_file} --dataset-name cucumber/only_metric_test --only-metric"
Then it should exit successfully

Scenario: osrm-datastore - Displaying help should work
When I try to run "osrm-datastore {processed_file} --help"
Then it should exit successfully

Scenario: osrm-datastore - Errors on invalid path
When I try to run "osrm-datastore invalid_path.osrm"
Then stderr should contain "[error] Config contains invalid file paths."
And stderr should contain "Missing/Broken"
And it should exit with an error

0 comments on commit fb1540e

Please sign in to comment.