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

Rip the grooviness out of 'messy tests' in groovy plugin #13837

Closed
rmuir opened this issue Sep 29, 2015 · 2 comments · Fixed by #19621
Closed

Rip the grooviness out of 'messy tests' in groovy plugin #13837

rmuir opened this issue Sep 29, 2015 · 2 comments · Fixed by #19621
Labels
help wanted adoptme >test Issues or PRs that are addressing/adding tests

Comments

@rmuir
Copy link
Contributor

rmuir commented Sep 29, 2015

These these tests belong in core, and were just moved temporarily.

We should clean them up one by one...

@rmuir rmuir added >test Issues or PRs that are addressing/adding tests help wanted adoptme labels Sep 29, 2015
@rmuir
Copy link
Contributor Author

rmuir commented Sep 29, 2015

javanna added a commit to javanna/elasticsearch that referenced this issue Oct 6, 2015
javanna added a commit that referenced this issue Oct 6, 2015
tlrx added a commit to tlrx/elasticsearch that referenced this issue Jul 7, 2016
After elastic#13834 many tests that used Groovy scripts (for good or bad reason) in their tests have been moved in the lang-groovy module and the issue elastic#13837 has been created to track these messy tests in order to clean them up.

This commit moves more tests back in core, removes the dependency on Groovy, changes the scripts in order to use the mocked script engine, and change the tests  to integration tests.
tlrx added a commit to tlrx/elasticsearch that referenced this issue Jul 25, 2016
After elastic#13834 many tests that used Groovy scripts (for good or bad reason) in their tests have been moved in the lang-groovy module and the issue elastic#13837 has been created to track these messy tests in order to clean them up.

This commit moves more tests back in core, removes the dependency on Groovy, changes the scripts in order to use the mocked script engine, and change the tests  to integration tests.
tlrx added a commit to tlrx/elasticsearch that referenced this issue Aug 1, 2016
After elastic#13834 many tests that used Groovy scripts (for good or bad reason) in their tests have been moved in the lang-groovy module and the issue elastic#13837 has been created to track these messy tests in order to clean them up.

The work started with elastic#19280, elastic#19302 and elastic#19336 and this PR moves the remaining messy tests back in core, removes the dependency on Groovy, changes the scripts in order to use the mocked script engine, and change the tests to integration tests.

It also moves IndexLookupIT test back (even if it has good chance to be removed soon) and fixes its tests.

It also changes AbstractQueryTestCase to use custom script plugins in tests.

closes elastic#13837
@tlrx
Copy link
Member

tlrx commented Aug 1, 2016

Many messy tests have been cleaned recently in #19280, #19302, #19336 and #19621. Most of the tests have been moved back in their original places and converted back again into integration tests while the dependency on Groovy has been replaced by mocked scripts. It's not perfect since some tests would have benefit to be changed into unit or simplier tests but I think that's still a good move.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted adoptme >test Issues or PRs that are addressing/adding tests
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants