buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Boisvert (JIRA)" <>
Subject [jira] Commented: (BUILDR-296) scala tests are not passed properties as sysproperties.
Date Mon, 13 Jul 2009 22:07:15 GMT


Alex Boisvert commented on BUILDR-296:

Currently, the :properties are passed to the FunSuite as arguments -- they are not

Here's our current spec for it,

  it 'should pass properties to Suite' do
    write 'src/test/scala/PropertyTestSuite.scala', <<-SCALA
      import org.scalatest._
      class PropertyTestSuite extends FunSuite {
        var properties = Map[String, Any]()
        test("testProperty") {
          assert(properties("name") === "value")
        protected override def runTests(testName: Option[String], reporter: Reporter, stopper:
                                        includes: Set[String], excludes: Set[String], properties:
Map[String, Any]) {
 = properties;                              
          super.runTests(testName, reporter, stopper, includes, excludes, properties)
    define('foo').test.using :properties=>{ 'name'=>'value' }

> scala tests are not passed properties as sysproperties.
> -------------------------------------------------------
>                 Key: BUILDR-296
>                 URL:
>             Project: Buildr
>          Issue Type: Bug
>          Components: Test frameworks
>    Affects Versions: 1.3.4
>            Reporter: Jeff Hodges
>         Attachments: scalasysprop.tar.bz2
> In a scala build, it seems that :properties passed to test.using() are not being passed
as a system properties (ant.sysproperty), but instead as a straight 
> This causes problems when you let buildr user profiles have information about jna.library.path,

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message