Git Product home page Git Product logo

futbol_spec_harness's Introduction

Futbol Spec Harness

Setup

First, make sure that you have a directory called futbol that contains all the code for you project. For example, inside the futbol directory should be lib, test, and data directories. The spelling must be exactly futbol.

Navigate to the directory where futbol is located and clone this repository. Make sure you not inside the futbol directory, but rather adjacent to it, i.e. if you enter ls you should see futbol listed.

After you clone, the directory structure should look like this:

  <some_directory>
  |
  |\
  | \<futbol>
  |
  |\
  | \<futbol_spec_harness>

Change into the futbol_spec_harness directory and run bundle from the command line. If you get an error that says the bundle command cannot be found, run gem install bundle from the command line and try again.

Usage

From the futbol_spec_harness directory, in the command line run bundle exec rspec. This will run a test suite for the StatTracker class as described in the project page.

In order for the test suite to run, all requirement statements inside your project's lib directory need to be require_relative rather than require. For example, if in your stat_tracker.rb file you have a line:

require './lib/helper_class'

You should change it to use a require_relative:

require_relative './helper_class'

You do not need to change any of the require statements inside your test directory.

futbol_spec_harness's People

Contributors

ameseee avatar brianzanti avatar memcmahon avatar s-espinosa 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.