Mention how to test

This commit is contained in:
Kevin Sawicki 2017-01-24 14:04:56 -08:00 committed by GitHub
parent 7b03c05b4e
commit 4985e073c4

View file

@ -54,7 +54,7 @@ You can pass different options to `crashReporter.start` when calling from differ
**Note** Child processes created via the `child_process` module will not have access to the Electron modules.
Therefore, to collect crash reports from them, use `process.crashReporter.start` instead. Pass the same options as above
along with an additional one called `crashesDirectory` that should point to a directory to store the crash
reports temporarily.
reports temporarily. You can test this out by calling `process.crash()` to crash the child process.
**Note:** To collect crash reports from child process in Windows, you need to add this extra code as well.
This will start the process that will monitor and send the crash reports. Replace `submitURL`, `productName` and `tmpPath`