I did a fresh install of Luracast/Restler using Composer and am unable to get any behat tests to run. I'm a newbie to both Restler and behat, so I may be making a beginners mistake, but according to the documentation, all I need to do is change the root URL in behat.yml and then type bin/behat.
Here is the error message I'm getting when I type vendor/bin/behat.
[RuntimeException]
Context class not found.
Maybe you have provided a wrong or no `bootstrap` path in your behat.yml:
http://docs.behat.org/guides/7.config.html#paths
behat [--init] [-f|--format="..."] [--out="..."] [--lang="..."] [--[no-]ansi] [--[no-]time] [--[no-]paths] [--[no-]snippets] [--[no-]snippets-paths] [--[no-]multiline] [--[no-]expand] [--story-syntax] [-d|--definitions="..."] [--name="..."] [--tags="..."] [--cache="..."] [--strict] [--dry-run] [--stop-on-failure] [--rerun="..."] [--append-snippets] [--append-to="..."] [features]
Content-type: text/html
Here is my behat.yml file:
# behat.yml
default:
context:
parameters:
base_url: http://<MY_DOMAIN>.com/restler3/sampleproject/public
I've tried specifying both the paths.features and path.bootstrap variables with both absolute and relative paths with no success.
# behat.yml
default:
paths:
features: features
bootstrap: features/bootstrap
context:
parameters:
base_url: http://<MY_DOMAIN>.com/restler3/sampleproject/public
I would really like to use Restler for an API project that I'm starting, but I need to be able to run tests, so any help in getting me over this issue would be appreciated.