Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added test class for CheckFingerprint #1006

Conversation

a-filipp0v
Copy link
Contributor

Description

Added:

  • CheckFingerprintTest class;
  • fingerprinting_detail_metrics.example & fingerprinting_summary_metrics.example files in /testdata/picard/fingerprints as correct examples.

Checklist (never delete this)

Never delete this, it is our record that procedure was followed. If you find that for whatever reason one of the checklist points doesn't apply to your PR, you can leave it unchecked but please add an explanation below.

Content

  • Added or modified tests to cover changes and any new functionality
  • Edited the README / documentation (if applicable)
  • All tests passing on Travis

Review

  • Final thumbs-up from reviewer
  • Rebase, squash and reword as applicable

For more detailed guidelines, see https://github.com/broadinstitute/picard/wiki/Guidelines-for-pull-requests

Copy link
Contributor

@yfarjoun yfarjoun left a comment

Choose a reason for hiding this comment

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

looks good! thanks for testing.

some minor comments.

"H=" + SUBSETTED_HAPLOTYPE_DATABASE_FOR_TESTING
};
Assert.assertEquals(runPicardCommandLine(args), 0);
Assert.assertEquals(checkResult(
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it would be better to have two asserts, one for each metrics file....that way when something breaks it's easier to understand where the probem is

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

new File(TEST_DATA_DIR + "/tempCheckFPDir/detail")), true);
}

@Test(dataProvider = "badData", expectedExceptions = {TribbleException.MalformedFeatureFile.class,
Copy link
Contributor

Choose a reason for hiding this comment

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

is the fully qualified class name needed?

@coveralls
Copy link

coveralls commented Dec 15, 2017

Coverage Status

Coverage increased (+0.4%) to 77.634% when pulling c412469 on EpamLifeSciencesTeam:epam-ls_tests_for_CheckFingerprint into b0b9f78 on broadinstitute:master.

@a-filipp0v
Copy link
Contributor Author

Hello, thanks for your feedback!
Made few changes in accordance with your comments:

  • removed checkResult method, it’s invocation has been replaced by two asserts, one for each metrics file;
  • full names of exceptions were replaced by short ones, corresponding imports added;
  • few cosmetic changes, removed unnecessary throws from methods’ signature.

@a-filipp0v a-filipp0v force-pushed the epam-ls_tests_for_CheckFingerprint branch from c412469 to 63a6ed1 Compare December 15, 2017 12:31
@a-filipp0v
Copy link
Contributor Author

I'm sorry, had some troubles with git branch, so all my small local commits were shown. Have made force push with amend, which replaced all of them with the last one.

All mentioned changes are inside.

Sorry for inconvenience.

- removed checkResult method, it’s invocation has been replaced by two asserts, one for each metrics file;
- full names of exceptions were replaced by short ones, corresponding imports added;
- few cosmetic changes, removed unnecessary throws from methods’ signature.
@a-filipp0v a-filipp0v force-pushed the epam-ls_tests_for_CheckFingerprint branch from 63a6ed1 to e781bd7 Compare December 15, 2017 12:49
@coveralls
Copy link

coveralls commented Dec 15, 2017

Coverage Status

Coverage increased (+0.4%) to 77.634% when pulling e781bd7 on EpamLifeSciencesTeam:epam-ls_tests_for_CheckFingerprint into 70da387 on broadinstitute:master.

Copy link
Contributor

@yfarjoun yfarjoun left a comment

Choose a reason for hiding this comment

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

Thanks!

@yfarjoun yfarjoun merged commit 4e62e69 into broadinstitute:master Dec 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants