This is the evaluation test harness for SalesEngine. It requires your implementation of SalesEngine as a gem, then runs the evaluation specs against it.
Git clone this project into a directory that lives at the same level as your
sales_engine project directory. It should be arranged like:
<my_code_directory> | |\ | \sales_engine/ | |\ | \sales_engine_spec_harness/ |
Change directories into the
sales_engine_spec_harness/ directory and then execute:
This will load in your
SalesEngine implementation from your local file system. The spec harness provides the CSV files at
./data relative to the current directory from the perspective of the spec run.
Please be sure to name your gem
sales_engine inside of your
sales_engine.gemspec file. This does differ from the initial instructions. Sorry!
To test your implementation against the evaluation specs, run:
$ bundle exec rake spec
If you have implemtented the merchant extension, run:
$ bundle exec rake spec:extensions:merchant
Similarly, if you have implemented the invoice or customer extensions, run:
$ bundle exec rake spec:extensions:invoice # or $ bundle exec rake spec:extensions:customer
Or run them all with
bundle exec rake spec:extensions.
You should be all green.