Skip to content
This repository has been archived by the owner on Dec 12, 2018. It is now read-only.

Coverage jacoco coveralls #496

Closed
wants to merge 15 commits into from
Closed

Coverage jacoco coveralls #496

wants to merge 15 commits into from

Conversation

dogeared
Copy link
Member

  • Adds Jacoco test configuration for surefire and failsafe plugins
  • Adds jacoco-mulit-coverage module for creating local aggregated coverage reports for unit and integration tests. This is necessary as jacoco does not natively support aggregated reports for multi-module maven projects
  • Adds coveralls.io build to .travis.yml to report on aggregated code coverage for unit and integration tests.
  • Moves docs build to oraclejdk7 from oraclejdk8
  • Moves ITs run from jdk6 to jdk8 (reason is that maven coveralls plugin has to be jdk7 or newer AND we want the coveralls report to run after both unit and integration tests are run)
  • Adds an initial unit test to oauth package as none existed before. This ensures that the oauth package is included in the stats for coverage
  • Adds shell script to run all unit and integration tests and produce local aggregated coverage report

@@ -122,6 +122,6 @@ public AccountStore getAccountStore() {
/* @since 1.0.RC5 */
@Override
public AuthenticationOptions getResponseOptions() {
throw new UnsupportedOperationException(getClass().getName() + " .getResponseOptions() is not supported.");
throw new UnsupportedOperationException(getClass().getName() + ".getResponseOptions() is not supported.");
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Writing the test for this exposed the extra space in the message.

@mrioan mrioan self-assigned this Mar 1, 2016

@Test
public void testGetResponseOptions() {

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the first blank line in each method please

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in previous reviews, I though you'd said our standard was to have a blank for each method. Or, is that for classes?

@mrioan mrioan assigned dogeared and unassigned mrioan Mar 1, 2016
@mrioan
Copy link
Contributor

mrioan commented Mar 1, 2016

@dogeared back to you

@@ -19,7 +20,8 @@ before_install:
-Dexpression=project.version|grep -Ev '(^\[|Download\w+:)')"
- export IS_RELEASE="$([ ${RELEASE_VERSION/SNAPSHOT} == $RELEASE_VERSION ] && [ $TRAVIS_BRANCH
== 'master' ] && echo 'true')"
- export BUILD_DOCS="$([ $TRAVIS_JDK_VERSION == 'oraclejdk8' ] && echo 'true')"
- export BUILD_DOCS="$([ $TRAVIS_JDK_VERSION == 'oraclejdk7' ] && echo 'true')"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you change this to JDK7?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I moved the run of the ITs to JDK8. So, I moved the build docs to JDK7 to keep the time for each JDK build as short as possible.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool - thanks!

@dogeared
Copy link
Member Author

dogeared commented Mar 7, 2016

Closing (for now) to investigate clover.

@dogeared dogeared closed this Mar 7, 2016
@dogeared dogeared removed their assignment Mar 9, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants