Spec harness for evaluating the Hungry Academy SalesEngine project
Ruby
Switch branches/tags
Nothing to show
Pull request Compare This branch is 1 commit ahead, 60 commits behind turingschool:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
data
lib
spec
.gitignore
.rspec
Gemfile
LICENSE
README.md
Rakefile
sales_engine_spec_harness.gemspec

README.md

SalesEngineSpecHarness

This is the evaluation test harness for SalesEngine. It requires your implementation of SalesEngine as a gem, then runs the evaluation specs against it.

Installation

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:

$ bundle

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.

Note:

Please be sure to name your gem sales_engine inside of your sales_engine.gemspec file. This does differ from the initial instructions. Sorry!

Usage

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.