-
Notifications
You must be signed in to change notification settings - Fork 4
Memo
Morichan edited this page Apr 21, 2019
·
1 revision
-ea -Djdk.attach.allowAttachSelf -Djava.awt.headless=true -Dtestfx.robot=glass -Dtestfx.headless=true -Dprism.order=sw -Dheadless.geometry=1960x1080-64 を入れると、TestFXのヘッドレス機能を利用できる。
- Monocleを利用する
- https://codeday.me/jp/qa/20190309/382096.html によると、コードにプロパティを埋込む方式もある
- https://gitter.im/TestFX/TestFX/archives/2018/10/11 によると、オプションの指定は複数存在する
- https://wiki.openjdk.java.net/display/OpenJFX/Monocle によると、開発環境によってプロパティ値が異なる
- https://github.com/TestFX/TestFX/issues/640 によると、TestFX-JUnit5などのバージョンは4.0.15-alpha以上を必要とする
- headless.geometry値は「適切な」値を入れないと
BufferOverflowExceptionを投げる(大きくても小さくてもだめ) - ただし、適切な値を入れてもメモリオーバーにより途中で死んでしまう