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

salesforce / refocus / 9608 / 1
89%
master: 89%

Build:
DEFAULT BRANCH: master
Ran 19 Jun 2019 08:46PM UTC
Files 163
Run time 9s
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

19 Jun 2019 08:30PM UTC coverage: 87.629% (+0.02%) from 87.606%
9608.1

push

travis-ci

jgraff2
Add more publish tests for real-time events (#1186)

* Add publish tests for sample real-time events
Fix bugs found while testing (!!!)

Use redis publishAsync and always call publishObject expecting a
promise to be returned.
In samples api controller, always call publish inside the promise chain.
Fix the sampleStoreTimeout so it publishes sample update.
Stop double-publishing sample delete events when an aspect is deleted.
In subject db model, always call publish inside the promise chain.

* Add publish tests for real-time events for botActions, botData

Fix bugs found while testing.

When deleting botData, explicitly add something to the "changedKeys"
array, otherwise the prepareToPublish fn determines that there's nothing
to publish, so we were not emitting an event.

* Mostly just scaffolding for publish tests for rooms

* fixes from comments
remove console.log from botActions test
add test for editing an aspect without modifying tags
add test for verifying sample events when deleting subject (not covered by subject publish tests)
when editing subject tags, we were just sending subj delete and add events, but no sample delete event - added that now, and added test for it

* fixes from comments
remove console.log from botActions test
add test for editing an aspect without modifying tags
add test for verifying sample events when deleting subject (not covered by subject publish tests)
when editing subject tags, we were just sending subj delete and add events, but no sample delete event - added that now, and added test for it
moved the publish from the sample timeout clock job to the function which actually implements the timeout for consistency and testability

2875 of 3667 branches covered (78.4%)

7735 of 8827 relevant lines covered (87.63%)

624.83 hits per line

Source Files on job 9608.1
  • Tree
  • List 0
  • Changed 36
  • Source Changed 9
  • Coverage Changed 34
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 8566
  • Travis Job 9608.1
  • ccbf80a8 on github
  • Prev Job for on master (#9607.1)
  • Next Job for on master (#9614.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