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

testfx with jruby #89

Open
vpereira opened this issue Dec 5, 2014 · 5 comments
Open

testfx with jruby #89

vpereira opened this issue Dec 5, 2014 · 5 comments

Comments

@vpereira
Copy link

vpereira commented Dec 5, 2014

anyone tested or is it in your roadmap? https://github.com/TestFX/TestFX

@enebo
Copy link
Member

enebo commented Dec 6, 2014

Great idea! We should definitely hook this up or even better make a rubygem on top of it so we can drive FX GUIs using Ruby...

@oreoshake
Copy link
Contributor

related, is there anything we can use today to automate testing? I imagine the other search results (jemmy, marvis) are in the same state

@vpereira
Copy link
Author

@oreoshake i was able to use it https://github.com/renatoathaydes/Automaton. However, I didn't write many tests, I kind of just bootstrapped it in my project and was able to run it.

@oreoshake
Copy link
Contributor

@vpereira @enebo ok I've got what I consider to be an almost passable setup with docker + automaton.

I have an automated suite that's been running fairly smoothly for a few months now. I'll write up a blog post shortly to explain the hows and the gotchas.

For anyone interested, the container is at https://hub.docker.com/r/brakemansecurityinc/jrubyfx-xvfb/ and I use it to run automated tests and run jrubyfx-jarify.

That being said, I still plan on swapping out automaton for testfx or any of the others.

As for a wrapper, I don't think it's necessary?

require "Automaton-1.2.1-all-deps.jar"
app = MyApp.new
FXApp.start_app(app)
@fxer = FXer.get_user_with(FXApp.scene.root)
@fxer.click_on("text:Click Me")
<assertions>
JRubyFX::Application::Platform.exit

@oreoshake
Copy link
Contributor

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

No branches or pull requests

3 participants