Giter VIP home page Giter VIP logo

tests's Introduction

tests

Adding your tests

Just add your unit test file to the tests directory.

Please replace 'LastName' with 'NetId' in your filename.

If using rspec, add require 'rspec/autorun' to your test file (see tests/example_spec.rb). Make sure your filename ends in 'spec' or it will not be run correctly.

If using minitest, use require 'minitest/autorun' (see tests/example_minitest.rb). Make sure your class has a unique name or it will not run (such as <NetId>Test). If extending Minitest, make sure you use MiniTest::Test instead of MiniTest::Unit::TestCase

If using another (or no) testing framework, please make sure your file is runnable with ruby filename and then you can place it in the tests directory as normal.

If using no framework, it would be nice if you could format the output nicely, or quickly wrap your code in minitest or rspec.

Remove any importing of your Triple class or Enumerable module, we will use the standardized triple class in this directory.

Setup

You need to run these commands to install the testing libraries. (You'll need admin privledges, sudo on Linux)

gem install rspec
gem install rantly
gem install minitest

Running

Specify the full path to your Enumerable module in triple.rb

Then simply:

ruby run_all.rb

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.