|
We have experience in build and testing of Java applications and we would like to share this experience with you.
If you need help with your build and test infrastructure needs, we can help you with the following:
- Build scripts for the Ant Build Tool
- CVS extract / check in within Ant scripts
- Generate Javadoc with Ant (With some tips to remove unwanted Javadoc)
- Invocation of JUnit tests within Ant build scripts
- Source code coverage using Emma within Ant / JUnit tests
- Instrumenting test or product code binaries via AspectJ using Ant scripts
- Obfuscating your jars with yGuard
- Packaging your Java Application as a Windows Executable using JExecutable - Java Exe Maker.
- Best practices help in implementing JDBC / Database tests with plain old JUnit and Ant
Ant Build Tool
Ant is a widely popular build tool for Java applications. It can have uses besides builds as well. Ant is cross platform by design. Ant build scripts are written in XML. These XML files are interpreted by Ant which itself is written in Java. Using Ant you can typically build Java classes, create jars, package these jars as destributable packages or installers.
Typical tasks in an Ant build file includes details like extract source code from source code control system. Ant can interact with popular systems such as CVS, SVN, ClearCase, Perforce and more. Ant is
able to use operating system commands and is not limited to Ant command syntax.
Ant can compile your java source code and create output jars with additional artifacts such as properties files, text files, images that goes into your jar. Ant has support to easily maintain build
numbers. Each build can increment a build number and check in incremented version into the source code control system.
Ant has support to generate Javadocs based on your Java source code.
JUnit Test Tool
JUnit is a popular Java unit testing framework. JUnit allows the developers write small unit test functions. Various tools and IDEs such as Ant, Eclipse has support to run these tests and get a visually appealing HTML reports of the test status.
Code Coverage with Emma
Emma is a free code coverage tool for Java applications. It comes with an Ant task which allowsit to be easily integrated in Ant scripts. Emma instruments your code at compile time. At runtime you set a
JVM flag to turn coverage on and off. Emma can generate reports as text, html or xml. HTML reports are easy to grasp and it can help you understand your test coverage in a short time.
AspectJ - Tracing with aspects and more
AspectJ is a Aspect Oriented Programming compiler from eclipse.org for Aspects and Java source code. We typically use it to inject tracing code to help troubleshoot problems. It helps in investigating
test failures and it also helps customer support in the field. If used in the field in production code, AspectJ has a runtime component - a jar file that needs to be shipped with the application.
yGuard - Obfuscate and Shrink Jars
yGuard is a byte code obfuscator which makes the code impossible to read after decompilation. yGuard protects your intellectual property against decompilation. Bestcode can hep you get started with yGuard
to obfuscate your jars. yGuard integrates well with Ant through an Ant task.
Contact Us
You may contact us with your build and test problems to get a free quote. support@bestcode.com
Build / Test Tools Links
|