pont-us / PuffinPlot

A program to plot and analyse palaeomagnetic data
GNU General Public License v3.0
3 stars 0 forks source link

Unit test improvements #378

Open pont-us opened 3 years ago

pont-us commented 3 years ago

JUnit 5 was released on 2017-10-03. Worth looking at? And what about AssertJ for GUI testing (and other stuff)?

https://joel-costigliola.github.io/assertj/index.html

Looks very promising.

There's also Selenium for Swing GUI testing. See https://github.com/paul-hammant/swing_component_testing (also saved locally in cache/software).

See also https://sqa.stackexchange.com/q/18554.

Of course, if I start unit testing the GUI things get a lot more complicated if I want to execute tests in a headless environment (e.g. a CI server). Suggested solution is apparently to use xvfb or a vnc server – see https://joel-costigliola.github.io/assertj/assertj-swing-running.html.