Skip to content

Instantly share code, notes, and snippets.

@nitay
Last active May 18, 2016 18:47
Show Gist options
  • Save nitay/ffcee3d8c0cdae28fd1f383c279c12d7 to your computer and use it in GitHub Desktop.
Save nitay/ffcee3d8c0cdae28fd1f383c279c12d7 to your computer and use it in GitHub Desktop.
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