Skip to content

Playing around with a test server for Rails that keeps the environment loaded (just like spec_server)

Notifications You must be signed in to change notification settings

svenfuchs/test_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

test_server

Just playing …

You might be able to install this as a plugin and then:

  1. start the server: vendor/plugins/test_server/bin/server
  2. run some tests: vendor/plugins/test_server/bin/test --pattern=[pattern]
  3. run some specs: vendor/plugins/test_server/bin/spec spec

The default pattern used for test is test//_test.rb. The spec script uses the default RSpec option parser and runner so you can use whatever you’d use with the spec command.

The environment is loaded only once while the server is up. It will not be loaded when the server starts but when you first run some tests. This is so the server is immediately available. Not sure if that makes so much sense but it seems more convenient to me :)

Subsequent runs of your testsuite then won’t load the environment any more which usually makes them run much faster in total.

Credits

Heavily inspired by David Chelimsky’s spec_server which was based on Florian Weber’s TDDMate.

About

Playing around with a test server for Rails that keeps the environment loaded (just like spec_server)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages