class Buildr::Scala::ScalaTest

ScalaTest framework, the default test framework for Scala tests.

Support the following options:

Constants

VERSION

Attributes

group_excludes[RW]

annotation-based group exclusion

group_includes[RW]

annotation-based group inclusion

Public Class Methods

dependencies() click to toggle source
# File lib/buildr/scala/tests.rb, line 121
def dependencies
  [specs] + Check.dependencies + JMock.dependencies + JUnit.dependencies + Mockito.dependencies + ["org.scala-lang.modules:scala-xml_2.11:jar:1.0.5"]
end
new(test_task, options) click to toggle source
Calls superclass method Buildr::TestFramework::Base.new
# File lib/buildr/scala/tests.rb, line 136
def initialize(test_task, options)
  super
  @group_includes = []
  @group_excludes = []
end
specs() click to toggle source
# File lib/buildr/scala/tests.rb, line 109
def specs
  custom = Buildr.settings.build['scala.test']
  return custom if (custom =~ /:/)
  if Buildr::Scala.version?(2.7, 2.8)
    "org.scalatest:scalatest:jar:#{version}"
  elsif Buildr::Scala.version < "2.11"
    "org.scalatest:scalatest_#{Buildr::Scala.version_without_build}:jar:#{version}"
  else
    "org.scalatest:scalatest_#{Buildr::Scala.version_major_minor}:jar:#{version}"
  end
end
version() click to toggle source
# File lib/buildr/scala/tests.rb, line 104
def version
  custom = Buildr.settings.build['scala.test']
  (custom =~ /:/) ? Buildr.artifact(custom).version : VERSION
end