Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build tool #4

Open
codetojoy opened this issue Sep 24, 2015 · 5 comments
Open

build tool #4

codetojoy opened this issue Sep 24, 2015 · 5 comments

Comments

@codetojoy
Copy link
Member

Consider using Gradle or similar for an automated build. This would also make 3rd-party jars declarative, accommodate tests, and potentially generate a standalone executable jar.

@swhalley
Copy link
Contributor

swhalley commented Oct 6, 2015

This works now. But I would like to setup a task in gradle to run the unit tests

@codetojoy
Copy link
Member Author

It uses the java plugin so there are several tasks included. IIRC, "gradle test" should work. "gradle tasks" will list all of the tasks. There is definitely a way to run the unit tests as a standalone. That's why I included one. (They are executed with the main build task.... the java plugin is terrific)

@swhalley
Copy link
Contributor

See that now. Gradle test is silent if all tests pass. I wonder if I can get it to always report "Tests Passed XX of YY (ZZ Failed)".

@codetojoy
Copy link
Member Author

I might be able to print something to the command-line, but (by default) the full report is generated here:

~/Scooter-User-Generator/build/reports/tests/index.html

so I usually have that open in a browser, for inspection especially when tests fail. Let me know if that doesn't work for you.

@swhalley
Copy link
Contributor

Good to know. First experience with Gradle. Still learning

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants