woboq / qmetaobject-rs

Integrate Qml and Rust by building the QMetaObject at compile time.
MIT License
638 stars 89 forks source link

Use Qt Quick Test? #105

Open ratijas opened 4 years ago

ratijas commented 4 years ago

I wonder, would it make sense to use Qt Quick Test framework for testing qmetaobject-rs itself?

If yes, lets do it! If not, why?

Maybe we can do even better, and integrate QtTest into Rust ecosystem to the degree that it can be exposed as public API for testing 3rd-party users crates. (I'm still convinced that bundling Qt plugins with all their resources & guts as static libraries is the way to go. YMMV)

https://doc.qt.io/qt-5/qtquicktest-index.html

ogoffart commented 4 years ago

I don't think that make sense. Rust itself already has a very good test framework. And this crate is mainly done to be used from rust. So QtTest brings almost nothing here.

ratijas commented 4 years ago

Idk, just throwing in wild ideas before someone else asks the same. Maybe cargo-running tests when wrapping Qt/C++ libraries in crates. Not that I have particular use-case at hands, though.

jalcine commented 3 years ago

I can see a facade over QtTest to allow for GUI-driven tests. For example, I'm working on a social client and it'd be dope if I could run the QtQuick tests with my other code as well.

kalaksi commented 2 months ago

I don't think it's obvious how GUI-driven tests should be done using Rust and qmetaobject-rs. Any recommendations? Maybe some info could be added to documentation?