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

shakacode / react_on_rails / 1333 / 1
93%
master: 0%

Build:
Build:
LAST BUILD BRANCH: andrey/add-option-method
DEFAULT BRANCH: master
Ran 01 Feb 2016 08:02PM UTC
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

01 Feb 2016 07:39PM UTC coverage: 93.413%. First build
2.2.3, export RAILS_ENV=test DRIVER=selenium_chrome, spec/dummy/Gemfile

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

Source Files on job 1333.1 (2.2.3, export RAILS_ENV=test DRIVER=selenium_chrome, spec/dummy/Gemfile)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1333
  • Travis Job 1333.1
  • d971d792 on github
  • Next Job for 2.2.3, export RAILS_ENV=test DRIVER=selenium_chrome, spec/dummy/Gemfile on optimize-ensure-assets-compiled (#1343.1)
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