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

cucumber / cucumber-jvm / 3883 / 3
86%
master: 86%

Build:
DEFAULT BRANCH: master
Ran 12 Mar 2020 10:26AM UTC
Files 356
Run time 47s
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

12 Mar 2020 10:18AM UTC coverage: 85.942% (-0.005%) from 85.947%
COVERAGE=true

push

travis-ci

web-flow
[TestNG] Fix concurrent modification of events (#1919)

When a TestNG suite with `parallel="methods"` is executed TestNG will invoke
all `@DataProvider` annotated methods. Because these data providers also emit
the `TestRunStarted` event this event is emitted twice concurrently. These
events collide in the `CanonicalOrderEventPublisher` resulting in a concurrent
modification that inserts a null element rather then either of the events.

By moving the start of the test execution to the constructor we ensure that
test execution is always started serially. Additionally this ensures that it is
impossible to emit a `TestRunFinished` event without also emitting a
`TestRunStarted` event.

This comes at the cost of starting the execution as soon as the `@BeforeClass`
method is invoked. This will result in some apparent overhead as `TestNG` is
still preparing for execution.

Fixes: https://github.com/cucumber/cucumber-jvm/issues/1917

6584 of 7661 relevant lines covered (85.94%)

0.86 hits per line

Source Files on job 3883.3 (COVERAGE=true)
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 3165
  • Travis Job 3883.3
  • 7b1e01b5 on github
  • Prev Job for COVERAGE=true on master (#3880.3)
  • Next Job for COVERAGE=true on master (#3884.3)
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