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

Testing conventions now checks for tests in main #37321

Merged
merged 4 commits into from
Jan 24, 2019

Conversation

alpar-t
Copy link
Contributor

@alpar-t alpar-t commented Jan 10, 2019

This is the last outstanding feature of the old NamingConventionsTask, so time to remove it.

This is the last outstanding feature of the old NamingConventionsTask,
so time to remove it.
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

Copy link
Member

@rjernst rjernst left a comment

Choose a reason for hiding this comment

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

LGTM

// some test projects don't have a main source set
return Collections.emptySet();
}
return Boilerplate.getJavaSourceSets(getProject()).getByName(SourceSet.MAIN_SOURCE_SET_NAME)
Copy link
Member

Choose a reason for hiding this comment

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

no need to re-get the source set, you already have it above to use?

checkNoneExists(
"Classes matching the test naming convention should be in test not main",
getMainClassNames().stream()
.filter(this::implementsNamingConvention)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this could be moved to the input property getter

@alpar-t alpar-t merged commit 37768b7 into elastic:master Jan 24, 2019
@alpar-t alpar-t deleted the remove-naming-conventions branch January 24, 2019 15:30
alpar-t added a commit that referenced this pull request Jan 24, 2019
* Testing conventions now checks for tests in main

This is the last outstanding feature of the old NamingConventionsTask,
so time to remove it.

* PR review
@mark-vieira mark-vieira added the Team:Delivery Meta label for Delivery team label Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Delivery/Build Build or test infrastructure >non-issue Team:Delivery Meta label for Delivery team v6.7.0 v7.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants