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

sds / overcommit / 1820 / 1
90%
master: 91%

Build:
Build:
LAST BUILD BRANCH: solargraph-change-output-format
DEFAULT BRANCH: master
Ran 29 Sep 2019 05:05AM UTC
Files 201
Run time 7s
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

29 Sep 2019 05:01AM UTC coverage: 90.453% (+0.06%) from 90.394%
2.4

push

travis-ci

sds
Avoid stashing changes when all changes are staged

It was suggested in #135 that a potential way to avoid unnecessary file
change detection and general stashing woes would be to stash changes
only when there were unstaged changes that needed to be excluded from
the run.

This presents a nice optimization that I wish we had considered long
ago. We can simplify the logic now that we see the purpose of this
feature a little more clearly: stash only when you need to.

Issue #669 raised an interesting point about the difficulty to detect if
a stash entry was created, so we modified the tests to check if a method
call was made. This isn't great as it's peeking deep into the
implementation, so we added some additional tests that ensured the
methods in question actually existed. Not perfect, but gives us some
confidence in the implementation.

While here, we were able to:

* Extract the stashing logic into a separate `stash_changes` helper
  method.

* Simplify the `cleanup_environment` logic to just use whether changes
  were stashed in order to decide whether to restore.

Closes #669.

3032 of 3352 relevant lines covered (90.45%)

124.82 hits per line

Source Files on job 1820.1 (2.4)
  • Tree
  • List 0
  • Changed 52
  • Source Changed 47
  • Coverage Changed 52
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1788
  • Travis Job 1820.1
  • b3f36bad on github
  • Prev Job for 2.4 on conservative-stash (#1818.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