| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This build will always fail because it has two types of failing tests:
On Linux or Mac OS X:
$ ./gradlew run
On Windows:
> gradlew run
On Linux or Mac OS X:
$ ./gradlew test
On Windows:
> gradlew test
There will be a line that says > There were failing tests. See the report at: file:///... Copy & paste that line in a browser address bar, starting with file: to the end, to see the failures
Alternatively, in the Project view, right-click TestHelloWorld and select Run 'TestHelloWorld' or right-click app and select Run 'All Tests' This shows the specific JUnit assertion errors without the need for copy and paste
UNDER CONSTRUCTION
Unlike running the application using Gradle's run task, this allows passing command-line arguments.
On Linux or Mac OS X:
$ ./gradlew startScripts $ ./build/scripts/hello-java arg1 arg2 arg3
or
$ ./gradlew jar $ java -jar build/lib/hello-java.jar arg1 arg2 arg3
On Windows:
> gradlew startScripts > .\build\scripts\hello-java arg1 arg2 arg3
or
> gradlew jar > java -jar build\lib\hello-java.jar arg1 arg2 arg3
| Back | FazBrowse Home | New Git URL |