TestEngineering/Performance/Running performance tests

From MozillaWiki
< TestEngineering‎ | Performance
Revision as of 14:40, 18 June 2020 by Davehunt (talk | contribs) (Redirected page to TestEngineering/Performance/RunningTests)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Redirect page
Jump to navigation Jump to search

Prerequisites

What?

To be able to run one or more performance tests you need to know which are those. The Performance Test Projects from Performance Test Engineering page contains the projects and their test list.

How?

There’s a tool called mach we use to run the tests, but you need to at least have phabricator and bugzilla accounts to be able to run on try.

Running tests

Where?

As long as you have mach installed and configured, you can run a performance test locally or on try. But, first command you need to run to get familiar with the complexity of mach is:
mach help

Locally

Running a performance test locally means that you need to have the proper setup for the specific testing framework and that the test will you the resources of you workstation to run the test. The mach command is:
run raptor test

To find out more info about the command arguments you can run:
run raptor test help
or
run talos test help

On try

There’s the option on running a performance test on try (treeherder). Unlike locally, this option will run the test on an integration environment from mozilla, meaning that it won’t use any of your workstation resources to get the results.
The command is:
mach try chooser command
to get a nice UI to choose the tests to run:
mach try chooser ui
or
mac try fuzzy command
mach try fuzzy chooser
to get a CLI on your console to choose the tests you want to run.

Also, you can do anytime
mach try help
To find out about more try options.