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 115
def dependencies
  [specs] + Check.dependencies + JMock.dependencies + JUnit.dependencies + Mockito.dependencies
end
new(test_task, options) click to toggle source
Calls superclass method Buildr::TestFramework::Base.new
# File lib/buildr/scala/tests.rb, line 137
def initialize(test_task, options)
  super
  @group_includes = []
  @group_excludes = []
end
specs() click to toggle source
# File lib/buildr/scala/tests.rb, line 105
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}"
  else
    "org.scalatest:scalatest_#{Buildr::Scala.version_without_build}:jar:#{version}"
  end
end
version() click to toggle source
# File lib/buildr/scala/tests.rb, line 100
def version
  custom = Buildr.settings.build['scala.test']
  (custom =~ /:/) ? Buildr.artifact(custom).version : VERSION
end