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

require reference as asserted in documentation #8067

Merged
merged 3 commits into from
Oct 21, 2022

Conversation

tmelman
Copy link
Contributor

@tmelman tmelman commented Oct 21, 2022

Documentation specifies that a reference is required; this PR enforces this requirement.

Copy link
Collaborator

@droazen droazen left a comment

Choose a reason for hiding this comment

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

@tmelman One issue in the test that needs fixing, then feel free to merge once tests pass

@Test(expectedExceptions = CommandLineException.class)
public void requiresReferenceTest() throws IOException {
// This test is a bit more like the real world
final File outputFile = File.createTempFile("mergeannotatedregions", ".seg");
Copy link
Collaborator

Choose a reason for hiding this comment

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

This method doesn't clean up after itself -- use the createTempFile() method inherited from BaseTest instead, which sets the temp file to be deleted on JVM exit.

arguments.add("--" + CopyNumberStandardArgument.SEGMENTS_FILE_LONG_NAME);
arguments.add(SIMPLE_TEST_FILE);
arguments.add("-" + StandardArgumentDefinitions.OUTPUT_SHORT_NAME);
arguments.add(outputFile.getAbsolutePath());
Copy link
Collaborator

Choose a reason for hiding this comment

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

In the future consider using ArgumentsBuilder to build up your integration test command lines (though the manual method here is fine too)

@tmelman tmelman merged commit 9321181 into master Oct 21, 2022
@tmelman tmelman deleted the tm_mergeannotatedregions_require_reference branch October 21, 2022 18:01
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

2 participants