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

shakacode / react_on_rails / 1343
93%
master: 0%

Build:
Build:
LAST BUILD BRANCH: andrey/add-option-method
DEFAULT BRANCH: master
Ran 01 Feb 2016 10:49PM UTC
Jobs 1
Files 14
Run time 1s
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
1343

push

travis-ci

robwise
Optimize efficiency of EnsureAssetsCompiled functionality

This commit changes the EnsureAssetsCompiled feature that ensures
RSpec tests are run with the latest webpack bundles. Previously,
webpack bundles would be rebuilt every test run, whether or not
they actually need to be. While one could around this by running
webpack in the background to rebuild the static assets, doing so
required users to name their webpack build script exactly correct
as the technique relied on a `pgrep`.

Instead, the functionality checks the mdate on each generated webpack
bundle/asset against the mdate of every file inside of the `client`
directory, which is all encapsulated by the standard library method
`FileUtils.uptodate?` and is very performant. This eliminates the
need to check for an existing webpack process because the webpack
bundles will be up to date anyway if the latter is running.

This required adding some fixtures for proper testing. These can be
found in `spec/react_on_rails/fixtures/webpack_assets`.

312 of 334 relevant lines covered (93.41%)

14.13 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1343.1 (2.2.3, export RAILS_ENV=test DRIVER=selenium_chrome, spec/dummy/Gemfile) 01 Feb 2016 10:49PM UTC 0
93.41
Travis Job 1343.1
Source Files on build 1343
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1343
  • f9946d00 on github
  • Prev Build on optimize-ensure-assets-compiled (#1333)
  • Next Build on optimize-ensure-assets-compiled (#1346)
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

© 2026 Coveralls, Inc