Skip to content

Speed up test fx tests#503

Merged
JordanMartinez merged 2 commits intoFXMisc:masterfrom
JordanMartinez:speedUpTestFXTests
May 11, 2017
Merged

Speed up test fx tests#503
JordanMartinez merged 2 commits intoFXMisc:masterfrom
JordanMartinez:speedUpTestFXTests

Conversation

@JordanMartinez
Copy link
Copy Markdown
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