edvin / tornadofx2

TornadoFX 2.0
Apache License 2.0
156 stars 41 forks source link

Running tests generates a screenshot file #44

Open aleksandar-stefanovic opened 2 years ago

aleksandar-stefanovic commented 2 years ago

When running TableViewTest.kt, a screenshot of a table is saved into the project:

robot.robotContext().captureSupport.saveImage(robot.capture(primaryStage.scene.root).image, Paths.get("example-table.png"))

Just wanted to check whether this is intentional (although I see no purpose for it), and if it's not, we should probably delete it (or at least comment it out, in case that screenshot is needed in the future). If it is intentional, maybe we should add a gitignore rule for it.

SKeeneCode commented 2 years ago

Looks like something someone did when playing with the API. It can probably be removed. Best to remove uncommented code where we can.