Skip to content

Commit bcc9163

Browse files
committed
Bug 1773440 - Update GTest examples to moz.build. r=sylvestre DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D148800
1 parent 3ee8bf3 commit bcc9163

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/gtest/index.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Running tests
2020
-------------
2121

2222
The Firefox build process will build GTest on supported platforms as
23-
long as you don't disable test in your mozconfig. However xul-gtest will
23+
long as you don't disable tests in your mozconfig. However xul-gtest will
2424
only be built when tests are required to save an expensive second
2525
linking process.
2626

@@ -161,7 +161,7 @@ is a recommended read.
161161
tear down any dependencies you have in your test fixtures. Avoid
162162
writing integration tests and focus on testing individual units.
163163

164-
See https://hg.mozilla.org/mozilla-central/rev/351462147f91 for an
164+
See https://hg.mozilla.org/mozilla-central/rev/ed612eec41a44867a for an
165165
example of how to add a simple test.
166166

167167
If you're converting an existing C++ unit test to a GTest, `this
@@ -225,8 +225,9 @@ subdirectory in:
225225

226226
.. code-block:: python
227227
228-
if CONFIG['ENABLE_TESTS']:
229-
DIRS += ['tests/gtest']
228+
TEST_DIRS += [
229+
"gtest",
230+
]
230231
231232
When adding tests to an existing moz.build file (it has FINAL_LIBRARY =
232233
'xul-gtest'), add the following. That's it--there is no test manifest

0 commit comments

Comments
 (0)