• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

shakacode / react_on_rails / 358
86%
master: 0%

Build:
Build:
LAST BUILD BRANCH: andrey/add-option-method
DEFAULT BRANCH: master
Ran 05 Nov 2015 01:56AM UTC
Jobs 1
Files 13
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
358

push

travis-ci

robwise
Add Generators

Adds a Rails generator for installing everything needed to get up and running.
The generator includes a "Hello World" example that allows the user to see an
example of working code. All examples represent our current best practices
at Shaka Code.

The generator is invoked as follows:

`rails generate react_on_rails:install`

The generator can also be passed several options:

- `--redux` (alias: `-R`): uses Redux in the Hello World example client code
- `--server-rendering` (alias: `S`): include files needed for server rendering

These options can be combined:

`rails generate react_on_rails:install --redux --server-rendering`

All generator code is inside of lib/generators/react_on_rails

All generator specs are included inside of the spec/react_on_rails/generators
folder. These tests will create a dummy folder specifically for testing the generators.
Any files that the generator expects to already be existing when run will need to be
manually created as part of the setup phase for each test.

The install generator relies on several other react_on_rails generators that are
hidden from the user via the special `!hide` command at the beginning of the
generator's definition. These generators are invoked from the install generator
according to the options passed from the user.

Because of the multiple unique combinations of options that can be passed from
the user, it was necessary to split template files into several sub-folders based
on those options. Files common to all builds are inside of the templates/base
folder and files specific to non-redux or redux buildes are in similarly-named
folders. Within each, there may or not be further folders depending
on whether or not the user has chosen to also pass server-rendering as an option.

This commit was the work of several developers:

- Aaron Van Bokhoven (original committer)
- Rob Wise (generator code, enhancments, tests, revisions, documentation)
- Blaine Hatab (bug fixes and revisions)... (continued)

215 of 215 new or added lines in 10 files covered. (100.0%)

293 of 339 relevant lines covered (86.43%)

19.68 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
lib/generators/react_on_rails/base_generator.rb
10
100.0
lib/generators/react_on_rails/install_generator.rb
15
100.0
lib/generators/react_on_rails/generator_helper.rb

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
lib/react_on_rails/configuration.rb
3
100.0
lib/react_on_rails/server_rendering_pool.rb
Jobs
ID Job ID Ran Files Coverage
1 358.1 (2.2.3, export RAILS_ENV=test, spec/dummy/Gemfile) 05 Nov 2015 01:56AM UTC 0
86.43
Travis Job 358.1
Source Files on build 358
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #358
  • fc94c85b on github
  • Prev Build on add-generators (#355)
  • Next Build on add-generators (#360)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc