author | Chris H-C <chutten@mozilla.com> |
Mon, 14 Dec 2020 17:12:28 +0000 | |
changeset 560676 | ab3cb32e5be762943ce7b9ca8292cf1c8487ee09 |
parent 560675 | cb2974d10cd2e3cdb2d872217264db9b36d67e2a |
child 560677 | ed77ed36df18eeab70127b9bf1600c65a070e871 |
push id | 132750 |
push user | chutten@mozilla.com |
push date | Mon, 14 Dec 2020 19:47:51 +0000 |
treeherder | autoland@ab3cb32e5be7 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | janerik |
bugs | 1673648 |
milestone | 85.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- a/toolkit/components/glean/docs/testing.md +++ b/toolkit/components/glean/docs/testing.md @@ -77,17 +77,17 @@ The [Glean Parser](https://github.com/mo has been augmented to generate FOG-specific APIs for Glean metrics. This augmentation is tested by running: `mach test toolkit/components/glean/pytest` These tests require Python 3+. If your default Python is Python 2, you may need to instead run: -`mach python-test --python 3 toolkit/components/glean/pytest` +`python3 mach python-test toolkit/components/glean/pytest` ## C++ To test the C++ parts of FOG's implementation (like metric types) you should use `gtest`. FOG's `gtest` tests are in [`gtest/`](https://hg.mozilla.org/mozilla-central/file/tip/toolkit/components/glean/gtest/). @@ -107,8 +107,11 @@ To test the JS parts of FOG's implementa you should use `xpcshell`. FOG's `xpcshell` tests are in [`xpcshell/`](https://hg.mozilla.org/mozilla-central/file/tip/toolkit/components/glean/xpcshell). You can either add a test case to an existing file or add a new file. If you add a new file, remember to add it to the [`xpcshell.ini`](https://hg.mozilla.org/mozilla-central/file/tip/toolkit/components/glean/xpcshell/xpcshell.ini) or the test runner will not be able to find it. + +To run FOG's JS tests, run: +`./mach test toolkit/components/glean/xpcshell`