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

cucumber / cucumber-jvm / 3882
86%
master: 86%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 11 Mar 2020 11:41PM UTC
Jobs 1
Files 356
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
3882

Pull #1919

travis-ci

web-flow
[TestNG] Fix concurrent modification of events

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
Pull Request #1919: [TestNG] Fix concurrent modification of events

8 of 8 new or added lines in 1 file covered. (100.0%)

6584 of 7661 relevant lines covered (85.94%)

0.86 hits per line

Jobs
ID Job ID Ran Files Coverage
3 3882.3 (COVERAGE=true) 11 Mar 2020 11:41PM UTC 0
85.94
Travis Job 3882.3
Source Files on build 3882
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3882
  • Pull Request #1919
  • PR Base - master (#3880)
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