Skip to content

Duke2k/jatf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jatf

Java Architecture Testing Framework (JATF)

This framework allows developers to quickly integrate code quality tests as dynamic unit tests, without the need of static code analysis tools. It uses annotations and rules to determine which classes of your project are tested for conventions, metrics, dependencies, or patterns. The framework is currently the first prototype, as a result of my master's thesis. The project is licensed under GPLv3 (see http://gplv3.fsf.org/).

Installation

To install, simply add a dependency to jatf-tests as follows:

com.github.duke2k.jatf
jatf-tests
Afterwards, define a test class in your project which runs the default test suite, as follows: import jatf.suites.AllArchitectureTests; import org.junit.runner.RunWith; import org.junit.runners.Suite;

@RunWith(Suite.class) @Suite.SuiteClasses({AllArchitectureTests.class}) ... You will also need to define a bean which implements Constraints, as follows:

and then import jatf.api.constraints.Constraint; import jatf.api.constraints.Constraints; import java.util.HashMap;

public class (class name) extends HashMap<Constraint, String> implements Constraints { ... } For reference as of how this class should be implemented, refer to jatf.common.ArchitectureTestDefaultConstraints. I'm sure you get the idea.

About

Java Architecture Testing Framework (JATF)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages