Skip to content

A demo of concurrency testing in Ruby used at the Barcelona Ruby on Rails meetup

Notifications You must be signed in to change notification settings

JSFernandes/concurrency-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Concurrency demo

This project is a demo of concurrency testing done in RSpec.

To achieve this, the project makes use of regular forks, and of the fork break gem. It also cleans up the use of fork break with a methodology based on this post.

I recommend following the repository's commit history in order to understand how the testing evolved in the project.

Running the project

To run this project you need to have Ruby and PostgreSQL installed. There is no specified .ruby-version file, but I expect it to work with with anything 2.2+.

Install the necessary gems:

  bundle install

Setup the database:

  bundle exec rake db:create
  bundle exec rake db:migrate

Run the tests:

  bundle exec rspec

About

A demo of concurrency testing in Ruby used at the Barcelona Ruby on Rails meetup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published