, 12 tweets, 9 min read
My Authors
Read all threads
#TDD, #CodeReview and #ContinuousIntegration in action - here is how with @marcandsweep we develop new features in #JaCoCo (jacoco.org/jacoco/):
as an example let's have a look at github.com/jacoco/jacoco/…
… first we add high level "validation" test to study desired behavior, this test targets Records (openjdk.java.net/jeps/359) that are #JDK14 Preview Feature (openjdk.java.net/jeps/12),
so build fails locally, but only on JDK14 …
… yes - locally for development we have many #Java versions installed …
… and that's also why for #ContinuousIntegration we run builds with ten #JDK versions - from #JDK5 up to Early Access builds of unreleased #JDK14 (jdk.java.net/14/) …
… based on "validation" test we add unit tests,
these tests do not depend on JDK version,
thus they cause failure of all builds …
… then we implement desired behavior,
and builds are back to successful state …
… only at this point we look at #CodeCoverage of individual unit tests to see whether we miss tests for some cases of new code or not, also note that this excludes high level "validation" tests …
… after that we create pull request with good description of why and what was changed,
it's time to update changelog with reference on pull request and ask for review …
… proper code review is never based only on changes visible in #GitHub,
it requires checkout into IDE and build by reviewer -
here is for example @marcandsweep using #AmazonWorkSpace to do proper code review while being on road in Toscana …
… artifact of successful build of every branch is also available,
so that it can be tried by external contributors even before merge into master …
… PR is merged after successful review, and build of master aka "snapshot" version is published automatically - both on site (jacoco.org/jacoco/trunk/d…) and into #Maven snapshots repo (jacoco.org/jacoco/trunk/d…), so that it can be tried by early adopters even before release …
… that's how we do #TDD, #CodeReview and #ContinuousIntegration to keep master branch of #JaCoCo always releasable.

Hope you enjoyed this little story and learned something new today!
Missing some Tweet in this thread? You can try to force a refresh.

Enjoying this thread?

Keep Current with Evgeny Mandrikov

Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

Twitter may remove this content at anytime, convert it as a PDF, save and print for later use!

Try unrolling a thread yourself!

how to unroll video

1) Follow Thread Reader App on Twitter so you can easily mention us!

2) Go to a Twitter thread (series of Tweets by the same owner) and mention us with a keyword "unroll" @threadreaderapp unroll

You can practice here first or read more on our help page!

Follow Us on Twitter!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just three indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!