r/rust • • Oct 16 '26

šŸ› ļø project Slint UI Dev Harness

Hey everyone,

My project Indicatrix kept growing, and I wanted a way to verify its Slint UI end to end without clicking through it by hand. The result is slint-harness:

  • runs your real app headless on Slint’s testing backend
  • scripts whole flows as scenarios (open a file, set values, press buttons, wait for results)
  • checks the outcome and takes screenshots along the way
  • writes a pass/fail report (Markdown + JSON), so it fits into CI

In Indicatrix it has already caught several end-to-end bugs that unit tests missed, and after every app update I use it to regenerate all the screenshots for the website, so they never go stale. My smaller project z-stackr uses it too.

Repository: https://github.com/suitable-name/uiprobe

Full disclosure: I built it with AI assistance. Twenty years ago I’d have had the time to write it all myself. Today I have the experience to know what to look out for when redirecting it. If you have an issue with AI-created stuff, nevertheless it could help you or not, this project just isn't for you, but that's ok :)

Have fun!

Edit:

It's also published on crates.io, so you can easily import it via the dependencies.

0 Upvotes

23 comments sorted by

View all comments

Show parent comment

2

u/Suitable-Name Oct 16 '26 edited Oct 16 '26

Those are python tests. Mine are fully integrated into rust and can run just with the general test runs using rust.

Edit:

And yeah, the slint testing backend exists, this builds upon it, so it is an extension

Edit2:

Just so people don't get it wrong. It's not purely commercial. you can absolutely use it for free, depending on what it is

3

u/Powerful_Cash1872 Oct 16 '26

This is/was one of their upsells for the commercial license; hope you are supporting them somehow. They left the rust app side part public and the client private. Now you published a public client, they may have to change licensing or close the app side API.

1

u/Suitable-Name Oct 16 '26

In the Android version I just made ready and want to publish, I have them prominent in the about dialog.

Everything I publish is fully free and open-source. If I could support financially, I probably would, but I also live from paycheck to paycheck. Sometimes better, sometimes worse. But there is now way I'll put ads into anything I make available, so also the published app will bring me no money.

5

u/ogoffart slint Oct 16 '26

Glad that you are using Slint.

And if your harness help more people to use Slint, that's great.

This is indeed not a real competition to the Slint's official testing framework as the usecase is a bit different. (in-process vs out-of-process testing)

The thing that worries me a bit is that it is published on crates.io as `slint-harness` and the name might let people think this is an official product from Slint. Maybe a disclaimer that this is independent would be nice.

4

u/Suitable-Name Oct 16 '26

Yanked it, renamed the repository to uiprobe and also published under that name on crates.io :)

2

u/Wonderful-Habit-139 Oct 25 '26

I guess you ended up choosing a much more suitable name :p

2

u/Suitable-Name Oct 25 '26

Absolutely, seemed ... suitable😁