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

johnbywater / eventsourcing / 2884
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 08 Jun 2020 09:36PM CUT
Jobs 3
Files 106
Run time 1min
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
2884

push

travis-ci

johnbywater
Improved record manager test cases, and added missing things.

Basically, I was thinking about using the 'set_notification_ids'
feature of application classes more, so that notifications
can be put into shared memory without needing to query the
database to get the notification IDs, and felt like the
testing of the "insert values" mode needed to be covered
better, in particular covered by the record manager tests
rather than only exercised by the application test cases.
In adding base test cases for these things, I was able to
test the record managers in a standard way, and then it
made sense to implement previously missing support for
these aspects in some record managers, and also improve
the tests so that now I feel more confident in this aspect.

- Previously, the "insert values" mode of record managers
  wasn't covered by the record manager tests.
- Django and Popo record managers didn't previously support
  "insert values" mode, which allows for notification IDs to
  be set in the application, and "non-notifiable" domain
  events (where the domain events aren't present in the
  notification log).
- Django, Popo, and SQLAlchemy record managers didn't
  previously reject non-integer values for notification IDs
  (which can cause problems).
- SQLAlchemy record manager wasn't using compiled insert
  statements where it could (ie when there are no ORM objects
  to insert). Still might be possible to use them with ORM
  objects, but it seems to need the connection rather than
  transaction and ORM objects seem to need the transaction
  rather than connection interface?
- Previously, test cases were using methods on subclasses
  of record manager but the factory method for the record
  manager was type-hinted with the superclass, so couldn't
  navigate to the method-under-test.
- Previously, the tracking record aspect of record managers
  wasn't being tested in the record manager test cases.

5762 of 6143 relevant lines covered (93.8%)

2.81 hits per line

Jobs
ID Job ID Ran Files Coverage
1 2884.1 (CASSANDRA_HOSTS=127.0.0.1 MYSQL_USER=travis MYSQL_PASSWORD= POSTGRES_USER=postgres POSTGRES_PASSWORD=) 08 Jun 2020 09:36PM CUT 0
93.68
Travis Job 2884.1
2 2884.2 (CASSANDRA_HOSTS=127.0.0.1 MYSQL_USER=travis MYSQL_PASSWORD= POSTGRES_USER=postgres POSTGRES_PASSWORD=) 08 Jun 2020 09:36PM CUT 0
93.73
Travis Job 2884.2
3 2884.3 (CASSANDRA_HOSTS=127.0.0.1 MYSQL_USER=travis MYSQL_PASSWORD= POSTGRES_USER=postgres POSTGRES_PASSWORD=) 08 Jun 2020 09:37PM CUT 0
93.79
Travis Job 2884.3
Source Files on build 2884
  • Tree
  • List 106
  • Changed 43
  • Source Changed 26
  • Coverage Changed 41
Loading...
Coverage∆FileLinesRelevantCoveredMissedHits/Line
0.0
eventsourcing/system/kubernetes.py22 2 0 2 0.0
32.26
eventsourcing/system/grpc/processor.py561 + 3279 90 189 2.0
58.62
eventsourcing/system/grpc/processor_pb2_grpc.py224 58 34 24 3.0
88.38
eventsourcing/system/runner.py910 482 426 56 2.0
90.55
eventsourcing/domain/model/decorators.py343 127 115 12 3.0
91.57
...entsourcing/infrastructure/sqlalchemy/datastore.py129 83 76 7 3.0
91.83
eventsourcing/infrastructure/sqlalchemy/manager.py481 + 97257 + 42236 + 3321 + 93.0
92.17
eventsourcing/system/grpc/runner.py255 115 106 9 3.0
92.23
eventsourcing/utils/transcoding.py402 206 190 16 3.0
92.42
eventsourcing/system/multiprocess.py290 132 122 10 3.0
Showing 1 to 10 of 106 entries
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 11
  • Next
  • ►
    93.8
    eventsourcing/
  • Back to Repo
  • Travis Build #2884
  • fa418560 on github
  • Prev Build on develop (#2883)
  • Next Build on develop (#2885)
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

© 2025 Coveralls, Inc