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

chore[build]: add TestFX dependency #587

Merged
merged 2 commits into from
Oct 6, 2020
Merged

Conversation

keturn
Copy link
Member

@keturn keturn commented Oct 5, 2020

  • configure GitHub Actions to use TestFX in headless mode
  • upgrade JavaFX to 12

This is to try to reduce the distance to the branch for #571.

I looked at trying to cherry-pick the actual commits from that branch, but it didn't seem like that was going to make sense.

I'm not entirely certain that these test dependencies are suitable for all the tests currently in the master branch, since some of those tests were removed or replaced in the other branch.

But we'll see what the CI builder thinks of it. Or maybe you don't care for those tests anyway, if you see this as a stepping stone.

* configure GitHub Actions to use TestFX in headless mode
* upgrade JavaFX to 12
@skaldarnar skaldarnar added Topic: CI/CD Related to CI/CD and build infrastructure (excluded from the Changelog) Topic: Tests/QA Testing and quality assurance topics. labels Oct 5, 2020
Copy link
Member

@skaldarnar skaldarnar left a comment

Choose a reason for hiding this comment

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

Thanks for splitting this up into smaller parts 👍 Highly appreciated.

@@ -15,4 +15,6 @@ jobs:
java-version: 14
java-package: jdk
- name: Build and test with Gradle
env:
JAVA_TOOL_OPTIONS: -Dtestfx.robot=glass -Dtestfx.headless=true -Dprism.verbose=true
Copy link
Member

Choose a reason for hiding this comment

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

Should a developer use these flags locally as well?

Copy link
Member Author

Choose a reason for hiding this comment

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

Only if you want to make sure your test environment matches the GitHub one. And there's certainly some value to that if you're trying to reproduce a failure that GitHub tells you about!

but it's not necessary if your development environment is running somewhere it can just as easily use a standard JavaFX backend.

@skaldarnar skaldarnar merged commit 06d1ba3 into master Oct 6, 2020
@skaldarnar skaldarnar deleted the feat/game-start/gradle branch October 6, 2020 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Topic: CI/CD Related to CI/CD and build infrastructure (excluded from the Changelog) Topic: Tests/QA Testing and quality assurance topics.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants