Last active
May 18, 2016 18:47
-
-
Save nitay/ffcee3d8c0cdae28fd1f383c279c12d7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pprint | |
from pants.backend.jvm.targets.java_tests import JavaTests | |
from pants.build_graph.build_file_aliases import BuildFileAliases | |
pp = pprint.PrettyPrinter(indent=4) | |
class AiqJavaTests(JavaTests): | |
def __init__(self, **kwargs): | |
base_deps = [ | |
'3rdparty/ch/qos/logback:logback-classic', # runtime logback implementation | |
'3rdparty/org/specs2', # specs library | |
'config/src/test/resources' # test configs like logback | |
] | |
kwargs['dependencies'] = base_deps + kwargs.get('dependencies', []) | |
pp.pprint(kwargs) | |
super(JavaTests, self).__init__(**kwargs) | |
def build_file_aliases(): | |
return BuildFileAliases( | |
targets={ | |
'aiq_junit_tests': AiqJavaTests | |
} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment