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

Task 81 UI tests randomly fail #134

Merged
merged 81 commits into from
Jul 9, 2021
Merged

Conversation

LorenzoBettini
Copy link
Collaborator

Closes #81

UI tests are written in SWTBot tests directly. Cucumber tests are disabled. Many existing testing codes are being used, but we can further refactor the project by keeping only what's required. So far so good :)
Tests are much less flaky (the SWTBot timeout had to be increased but at least everything seems to be much more synchronized and deterministic), see https://github.com/pitest/pitclipse/tree/task_81-UI_tests_randomly_fail
By the way, each single test method can be run in isolation :)

Oxygen gives problem when running UI tests with Java 11:
java.lang.NoClassDefFoundError: javax/annotation/PostConstruct

Task-Url: http://github.com/pitest/pitclipse/issues/81
Otherwise we get another disturbing dialog for module-info.java when
running with Java 11

Task-Url: http://github.com/pitest/pitclipse/issues/81
to include module arguments for Java 11 and for macOS UI tests

Task-Url: http://github.com/pitest/pitclipse/issues/81
This was referenced May 14, 2021
@echebbi
Copy link
Collaborator

echebbi commented May 15, 2021

@LorenzoBettini I just noticed that you're asking for a review, can I take a look at the code or are you still working on it?

@LorenzoBettini
Copy link
Collaborator Author

@echebbi i pushed a few more commits yesterday but this PR is ready for review

mutationIsSelected(mutation);
}

public void mutationIsSelected(PitMutation mutation) {
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 changes the current selection so wouldn't selectMutation or even selectMutationInMutationsViews be a better name?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That's the same name as the one in the original Cucumber tests. But I agree: the name is misleading. Actually, it double clicks on the element on the view :)
What about doubleClickMutationInMutationsView?

Copy link
Collaborator

Choose a reason for hiding this comment

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

doubleClickMutationInMutationsView would be perfect

@sonarcloud
Copy link

sonarcloud bot commented May 17, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@LorenzoBettini
Copy link
Collaborator Author

@echebbi do you think we can merge?

@LorenzoBettini
Copy link
Collaborator Author

@echebbi sorry to bother you again, but can I merge it? Because then I'll have additional PRs on top of the merge

@echebbi
Copy link
Collaborator

echebbi commented Jul 9, 2021

Hey @LorenzoBettini, I'm deeply sorry for the late answer. I'm very busy at work so if I don't review a PR in a few days please feel free to go on and assume I won't have the time to review it: I don't want to freeze the whole development.

And yes, I think the branch can be merged!

@LorenzoBettini
Copy link
Collaborator Author

@echebbi OK, then I'll go on merging and I'll also create a few other PRs and if I don't hear from you I'll merge those ones as well.
Thanks!

@LorenzoBettini LorenzoBettini merged commit ff70c30 into master Jul 9, 2021
@LorenzoBettini LorenzoBettini deleted the task_81-UI_tests_randomly_fail branch July 9, 2021 13:00
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.

UI tests randomly fail
2 participants