What's the best way to set up automated unit tests of my URCap?

Hello community,

Found a few posts a while back about this topic, but I haven’t quite solved my issue yet and figured I’d ask again in 2025.

We’re developing a URCap with a complex UI that communicates with our proprietary sensor. We want to set up a testing suite with both unit and integration tests to ensure that logic within the URCap interface remains working, and it would be a huge boon for our team if we could set up mocks and automatically test (end-to-end) the interface/communication between the sensor and the UI.

Specific Questions:

  1. Any recommended/URCap-approved testing frameworks/libraries for Swing UI validation?
  2. How should I go about running my tests? Based on an older post it seems like we want to figure out how to set them up and run them within the simulator, but I would appreciate confirmation on this.
  3. Any recommended packages/libraries to mock or simulate robot interactions during UI testing?

Thanks for reading; we’re trying not to re-invent the wheel here. I appreciate any insights or recommendations.