Giter Site home page Giter Site logo

buffet's Introduction

Buffet

Buffet is a test distribution framework for Ruby. This means that it distributes your tests across all your worker machines and runs them in parallel, which significantly speeds up the testing cycle.

Buffet is in an alpha state. It should work, but there may be some rough patches. Feel free to send questions, or better, pull requests, my way.

A screenshot of Buffet

Installation

Install: gem install buffet-gem --pre

Create a user named 'buffet' on each host; Buffet can take care of the rest.

Usage

Run tests: buffet for the command line, or buffet-web. Your choice.

Details

Help: buffet --help.

Settings: buffet --settings.

Continuous integration: buffet --watch.

If you have databases that need to be refreshed every time you test: Create a file called db_setup to do this, and put it in [your repo]/bin. Be sure that this script also rests the databases on the hosts as well.

The CLI currently has more options than the web interface. Working on this.

FAQ

/usr/lib/ruby/1.8/fileutils.rb:243:in mkdir': Permission denied - /home/(some user) (Errno::EACCES)`

This means that somehow bundle install was called, but is using args found on the master machine, not the host. (Yes, the error is very obscure..)

There are a few ways to solve this problem:

  1. You can manually solve this by sshing in and calling bundle install.
  2. You can examine the source / bug me to figure out why things are out of order, then fix them.

unknown database 'buffet_causes'

You should precede all bundle database commands with RAILS_ENV=test.

Looking Forward

  1. Use a git wrapper, not inline shell commands.

buffet's People

Contributors

johnfn avatar wincent avatar

Stargazers

 avatar

Watchers

 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.