Return-Path: Delivered-To: apmail-buildr-commits-archive@www.apache.org Received: (qmail 50324 invoked from network); 13 Jul 2009 22:07:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Jul 2009 22:07:27 -0000 Received: (qmail 95670 invoked by uid 500); 13 Jul 2009 22:07:37 -0000 Delivered-To: apmail-buildr-commits-archive@buildr.apache.org Received: (qmail 95641 invoked by uid 500); 13 Jul 2009 22:07:37 -0000 Mailing-List: contact commits-help@buildr.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@buildr.apache.org Delivered-To: mailing list commits@buildr.apache.org Received: (qmail 95632 invoked by uid 500); 13 Jul 2009 22:07:37 -0000 Delivered-To: apmail-incubator-buildr-commits@incubator.apache.org Received: (qmail 95629 invoked by uid 99); 13 Jul 2009 22:07:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Jul 2009 22:07:37 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Jul 2009 22:07:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 09AFE234C04B for ; Mon, 13 Jul 2009 15:07:15 -0700 (PDT) Message-ID: <1091870201.1247522835038.JavaMail.jira@brutus> Date: Mon, 13 Jul 2009 15:07:15 -0700 (PDT) From: "Alex Boisvert (JIRA)" To: buildr-commits@incubator.apache.org Subject: [jira] Commented: (BUILDR-296) scala tests are not passed properties as sysproperties. In-Reply-To: <271685175.1247515274893.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ 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.