codebutler / farebot

Read data from public transit cards using your NFC Android phone!
http://codebutler.github.com/farebot
GNU General Public License v3.0
966 stars 271 forks source link

Improve GRADLE build Performance #199

Open ChenZhangg opened 3 years ago

ChenZhangg commented 3 years ago

Parallel test execution maxParallelForks. Gradle can run multiple test cases in parallel by setting maxParallelForks.

Disable report generation. We can conditionally disable it by setting reports.html.required = false; reports.junitXml.required = false. If you need to generate reports, add -PcreateReports to the end of Gradle's build command line.

Process forking options. Gradle will run all tests in a single forked VM by default. This can be problematic if there are a lot of tests or some very memory-hungry ones. We can fork a new test VM after a certain number of tests have run by setting forkEvery.

===================== If there are any inappropriate modifications in this PR, please give me a reply and I will change them.