Hello lists,

As briefly mentioned at the Gaia weekly meeting, Raptor has completed its
major refactoring to turn the tool into a more generic CLI tool. This means
that the tool you are familiar with that was bundled with Gaia will
eventually no longer be bundled. Instead, you can now install Raptor as a
standalone tool via:

npm install -g @mozilla/raptor

---

Some major highlights:

Marionette.js is now integrated into Raptor. This means less reliance on
custom profiles and elimination of the custom homescreen to run Raptor, and
a new `make raptor` command will be landing soon to reflect this. This also
means that you will be able to write custom performance tests by using
Marionette to trigger user action which would cause your
performance.measure()s to be hit.

By switching to Marionette, we were able to make application launching a
bit smarter, and this allow us to run performance tests against more apps,
including in theory third-party apps and hosted apps. This hasn't been
extensively tested yet, so if you have a third-party or hosted app you
would like to performance test, reach out to me and I will assist with any
issues.

Raptor being a standalone CLI tool now, it has a different command-line
syntax. Upon installation, you should be able to get some quick information
via `raptor --help`. At the moment the tool exposes a single command, test,
and you can see some of the options available with `raptor test --help`.
The docs on the new syntax at the command line, as well as how to get
started writing tests can all be found on MDN [1].

We now trigger a memory minimization/GC before capturing memory results.
This results in much more accurate and less varied memory results.

---

The Gaia-integrated version of Raptor has not yet been removed as we are
still working to migrate over our automation to use the new tool. I expect
that to happen in the next week or so. As always, if you have any questions
or need any assistance, feel free to reach out or ping me in the #raptor
room.

[1] https://developer.mozilla.org/en-US/Firefox_OS/Automated_testing/Raptor

Thanks!

Eli Perelman
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to