Development - HearstAT/ensemble GitHub Wiki

Development

Visual Studio Code support as an IDE

There is a .vscode/launch.json provided it will support:

Attach to Docker

  • There are docker-compose files that launch in debug mode and will not bring the server up fully until you hit the 'Start Debugging' on this setting

Debug Local File

  • Will attempt to run the file currently open in Visual Studio Code (may not work in many cases)

Listen for rdebug-ide

  • Will attach debugging session to 127.0.0.1:3000 if there is anything running on it

Debug Rails Server

  • Will launch the Rails server in the context of the Debugger (allowing you to set breakpoints)

Debug Rails Server

  • Will launch the Rails server without the debugger but still show the output in the debug console

RSpec - all

  • Will run rspec on all of your specs

Test - all

  • Will run rake test on all of your test (currently only rspec is used for this project)

RSpec - active spec file only

  • Will run rspec only on the current file you have open in Visual Studio Code

Test - active spec file only

  • Will run rspec only on the current file you have open in Visual Studio Code (currently only rspec is used for this project)

Cucumber

  • Experimental

Rails Listen Fork Bomb and how to deal with it

Repeated on a Mac I am running into the Rails Listen Issue causing the need to restart. This can be seen with the repeated error:

fsevent_watch[13744] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21)

Currently I am trying:

DISABLE_SPRING=1

How to run the test suite

bundle exec rspec
⚠️ **GitHub.com Fallback** ⚠️