buildr-commits mailing list archives

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

    [ https://issues.apache.org/jira/browse/BUILDR-296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12730550#action_12730550
] 

Alex Boisvert commented on BUILDR-296:
--------------------------------------

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

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:
Stopper,
                                        includes: Set[String], excludes: Set[String], properties:
Map[String, Any]) {
          this.properties = properties;                              
          super.runTests(testName, reporter, stopper, includes, excludes, properties)
        }
      }
    SCALA
    define('foo').test.using :properties=>{ 'name'=>'value' }
    project('foo').test.invoke
  end


> scala tests are not passed properties as sysproperties.
> -------------------------------------------------------
>
>                 Key: BUILDR-296
>                 URL: https://issues.apache.org/jira/browse/BUILDR-296
>             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 ant.property. 
> This causes problems when you let buildr user profiles have information about jna.library.path,
etc.

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


Mime
View raw message