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

Add AbstractXtextTests in .xtext.testing #3038

Merged
merged 9 commits into from
May 16, 2024

Conversation

LorenzoBettini
Copy link
Contributor

This is a preparation for #3026.

AbstractXtextTests is now in .xtext.testing.
It doesn't implement ResourceLoadHelper anymore: it wasn't used in a headless context. In fact, ResourceLoadHelper had already been inserted in .xtext.ui.testing.

The current AbstractXtextTests has been taken from duplicate occurrences of our test projects.
In some cases, the implements ResourceLoadHelper had to be manually added for some of our older content assist tests. But that wasn't a big deal.

@LorenzoBettini LorenzoBettini added this to the Release_2.35 milestone May 15, 2024
@LorenzoBettini
Copy link
Contributor Author

@cdietrich so do you want me to mark it as beta or is the PR ok?

@cdietrich
Copy link
Member

i want to be safe and thus mark it as beta

@LorenzoBettini
Copy link
Contributor Author

@cdietrich done: d10ede9

*/
public abstract class AbstractXtextTests extends Assert implements ResourceLoadHelper {
@Beta
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd appreciate a comment that points to the "newer" way of writing tests based on @RunWith and friends.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@szarnekow Right! To think I also thought about that and then forgot it ;)

Done that here f6a299a

I also took the chance to clean a few other bits.

@LorenzoBettini LorenzoBettini merged commit 579d91e into eclipse:main May 16, 2024
7 checks passed
@LorenzoBettini LorenzoBettini deleted the lb_3026 branch May 16, 2024 11:33
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