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

Speed up test fx tests #503

Merged
merged 2 commits into from
May 11, 2017

Conversation

JordanMartinez
Copy link
Contributor

I noticed that the mouse moves from the center of the area (due to clickOn(area)) to the top left portion of the first line and vice versa a couple of times in the test. This causes the test suite to take longer than necessary.

gradle test on my machine (I ran gradle clean before running the tests):
Before | After (in seconds)
18.975 | 15.514

- replaces all "clickOn(area)" calls with "*clickOnFirstLine()" This speeds up the test since the mouse doesn't move from the center to the top-left corner and back again throughout the tests that are run.
- shortened "some user-inputted text" to "some text"
@JordanMartinez JordanMartinez merged commit bbbc1ef into FXMisc:master May 11, 2017
@JordanMartinez JordanMartinez deleted the speedUpTestFXTests branch May 11, 2017 03:14
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.

1 participant