On 11/05/2020 23:54, Mike Hommey wrote:
On Mon, May 11, 2020 at 03:37:07PM -0700, Dave Townsend wrote:
Do we have any standard way to test in-tree Rust code?

Context: We're building a standalone binary in Rust that in the future will
be distributed with Firefox and of course we want to test it. It lives
in-tree and while we could use something like xpcshell to drive the
produced executable and verify its effects it would be much nicer to be
able to use Rust tests themselves. But I don't see a standard way to do
that right now.

Is there something, should we build something?

https://searchfox.org/mozilla-central/rev/446160560bf32ebf4cb7c4e25d7386ee22667255/python/mozbuild/mozbuild/frontend/context.py#1393

If it helps to have an example, Geckodriver is using RUST_TESTS

https://searchfox.org/mozilla-central/source/testing/geckodriver/moz.build#9-20

It's not depending on gecko, so it's a simpler case than the one Lina mentioned.
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to