docs: Minor fixes to build instructions (#20338)
* Minor fixes to build instructions * Direct folks to the unit testing page.
This commit is contained in:
parent
513c8536c0
commit
7f320eef0e
1 changed files with 2 additions and 12 deletions
|
@ -72,6 +72,7 @@ origin URLs.
|
||||||
$ cd src/electron
|
$ cd src/electron
|
||||||
$ git remote remove origin
|
$ git remote remove origin
|
||||||
$ git remote add origin https://github.com/electron/electron
|
$ git remote add origin https://github.com/electron/electron
|
||||||
|
$ git checkout master
|
||||||
$ git branch --set-upstream-to=origin/master
|
$ git branch --set-upstream-to=origin/master
|
||||||
$ cd -
|
$ cd -
|
||||||
```
|
```
|
||||||
|
@ -226,20 +227,9 @@ under `src/` directory.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ ninja -C out/Debug third_party/electron_node:headers
|
$ ninja -C out/Debug third_party/electron_node:headers
|
||||||
# Install the test modules with the generated headers
|
|
||||||
$ (cd electron/spec && npm i --nodedir=../../out/Debug/gen/node_headers)
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Then, run Electron with `electron/spec` as the argument:
|
You can now [run the tests](testing.md#unit-tests).
|
||||||
|
|
||||||
```sh
|
|
||||||
# on Mac:
|
|
||||||
$ ./out/Debug/Electron.app/Contents/MacOS/Electron electron/spec
|
|
||||||
# on Windows:
|
|
||||||
$ ./out/Debug/electron.exe electron/spec
|
|
||||||
# on Linux:
|
|
||||||
$ ./out/Debug/electron electron/spec
|
|
||||||
```
|
|
||||||
|
|
||||||
If you're debugging something, it can be helpful to pass some extra flags to
|
If you're debugging something, it can be helpful to pass some extra flags to
|
||||||
the Electron binary:
|
the Electron binary:
|
||||||
|
|
Loading…
Reference in a new issue