Giter VIP home page Giter VIP logo

headcount_test_harness's Introduction

Headcount Test Harness

For testing headcount.

Project description is here

Project Structure

For this harness to work, all the require statements in your Headcount project must be require_relative.

For example a file at headcount/lib/district_repository.rb that needed to require the adjacent district file, it would require it like so:

require_relative "district"

This is one of the few times we will ask you to use require_relative, but it will make things much easier in this case since we are using this external test harness to verify the functionality of your code.

Installing Locally

Git clone this project into a directory that lives at the same level as your headcount project directory. It should be arranged like:

<my_code_directory>
|
|\
| \headcount/
|
|\
| \headcount_test_harness/
|

Usage

Change directories into the headcount_test_harness/ directory and then execute:

$ bundle

To load in dependencies for the spec harness.

To test your implementation against the evaluation specs, run:

$ bundle exec rake

Usage -- Running Specific Iterations

If you want to run specific iterations, use the following format:

$ bundle exec rake test <iteration name> <iteration name>

Where <iteration name> is one, two, three, etc.

For example:

$ bundle exec rake test zero one two

would run tests for only those iterations.

Note on the Spec Data

The "answers" for the various tests in this test harness is being compiled from previous student projects. It is very possible that there will be mistakes along the way, and we would love to get your help in finding and correcting these

To help this, we'll adopt the following process:

If you encounter a mistake in the spec harness data, open a pull request to this repository fixing the mistake. If 5 students comment with a +1 on the pull request indicating that they also got the same answer, we will accept the change.

headcount_test_harness's People

Contributors

amcrawford avatar bethsecor avatar emilyfreeman avatar jcasimir avatar joshcheek avatar jwperry avatar ksk5280 avatar patwey avatar robbielane avatar rossedfort avatar sekharp avatar tonirib avatar worace avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.