Gradle has the ability to execute unit tests as part of the build process. To set up a unit test for a Java source file, you need to create a corresponding Java test file in /src/test/java. For example, if you have a /src/main/java/atg/commerce/MyClass.java source file, you need to define a /src/test/java/atg/commerce/MyClassTest.java test file. Unit tests are run as part of the Gradle Java plugin’s test task and can be written using normal JUnit 4 and Oracle Commerce conventions. See the Java plugin documentation for more details about the test task:

http://www.gradle.org/docs/current/userguide/java_plugin.html


Copyright © 1997, 2016 Oracle and/or its affiliates. All rights reserved. Legal Notices