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

shakacode / react_on_rails / 1346
93%
master: 0%

Build:
Build:
LAST BUILD BRANCH: andrey/add-option-method
DEFAULT BRANCH: master
Ran 02 Feb 2016 07:41PM UTC
Jobs 1
Files 14
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
1346

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 1346.1 (2.2.3, export RAILS_ENV=test DRIVER=selenium_chrome, spec/dummy/Gemfile) 02 Feb 2016 07:41PM UTC 0
93.41
Travis Job 1346.1
Source Files on build 1346
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1346
  • 2d3b6fba on github
  • Prev Build on optimize-ensure-assets-compiled (#1343)
  • Next Build on optimize-ensure-assets-compiled (#1347)
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