Return-Path: X-Original-To: apmail-buildr-users-archive@www.apache.org Delivered-To: apmail-buildr-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A12C7DEEC for ; Fri, 27 Jul 2012 16:43:59 +0000 (UTC) Received: (qmail 27342 invoked by uid 500); 27 Jul 2012 16:43:59 -0000 Delivered-To: apmail-buildr-users-archive@buildr.apache.org Received: (qmail 27317 invoked by uid 500); 27 Jul 2012 16:43:59 -0000 Mailing-List: contact users-help@buildr.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@buildr.apache.org Delivered-To: mailing list users@buildr.apache.org Received: (qmail 27308 invoked by uid 99); 27 Jul 2012 16:43:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jul 2012 16:43:59 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of alex.boisvert@gmail.com designates 209.85.220.172 as permitted sender) Received: from [209.85.220.172] (HELO mail-vc0-f172.google.com) (209.85.220.172) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jul 2012 16:43:53 +0000 Received: by vcbfo14 with SMTP id fo14so3831556vcb.17 for ; Fri, 27 Jul 2012 09:43:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=708j9RaSdzIvcxveoqWO6rFypiiuAt4HYR+q8RerbRg=; b=0OFDugdQylIoCOoWeZwWQ9OLxNkMw9sde2zKaqaePRfgTD2KtNv4aZVuBPIE93ZAhH 8HY4oG7M6wLMJjAW+ODDnmOzpRCA0TsrJ3YXTQVHzYBjNc50LwDFk6BgpOoLI9NQVGqw 8X7bRy0H0tnDxTXQRdvDfYTPpYqC3MWT90IJbP1fNMeqCvDW/HrpD/gcp4jHEyQAnt1W bMwRfurWJ3gKDPj6TEQHalTwoAnltNMiQhmMNSgnI/KHcMH9tgkDpUr0BbxmEokD8m2i Jr+YMYmXQWyEKE27ucbO1mnhyQ7KLJHjLsqHo0ip5jBRhq5R/rEWPjOUVbn1AGSDhxhs 2qxg== MIME-Version: 1.0 Received: by 10.220.107.136 with SMTP id b8mr3127812vcp.17.1343407412702; Fri, 27 Jul 2012 09:43:32 -0700 (PDT) Received: by 10.58.65.8 with HTTP; Fri, 27 Jul 2012 09:43:32 -0700 (PDT) In-Reply-To: References: Date: Fri, 27 Jul 2012 09:43:32 -0700 Message-ID: Subject: Re: Buildr not running ScalaTest FlatSpec specification tests From: Alex Boisvert To: users@buildr.apache.org Content-Type: multipart/alternative; boundary=f46d0435c0729f6e6004c5d269c7 --f46d0435c0729f6e6004c5d269c7 Content-Type: text/plain; charset=ISO-8859-1 Oh right, the repository has changed. Updated the gist to add the Sonatype repo. (This has been fixed in trunk already; and I already had the artifacts locally). alex On Fri, Jul 27, 2012 at 9:39 AM, Anthony Bargnesi wrote: > Thanks for putting the gist together. The test step failed trying to > retrieve an older version > of ScalaTest. > > Here is the output: > > [tony@starship 3188848]$ ~/tools/buildr-1.4.7/bin/buildr clean test > > /home/tony/.gem/ruby/1.9.1/gems/buildr-1.4.7/lib/buildr/core/application.rb:596: > Use Rbfig. > /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': iconv will > be deprecate > (in /home/tony/work/git/3188848, development) > Cleaning buildr-flatspec > Testing buildr-flatspec > Compiling buildr-flatspec into /home/tony/work/git/3188848/target/classes > Downloading org.scalatest:scalatest_2.9.:jar:1.6.1 > Buildr aborted! > RuntimeError : Failed to download org.scalatest:scalatest_2.9.:jar:1.6.1, > tried the fol > http://scala-tools.org/repo-releases/ > http://scala-tools.org/repo-snapshots/ > http://repo1.maven.org/maven2/ > > Thanks! > Tony > > On Fri, Jul 27, 2012 at 12:21 PM, Alex Boisvert >wrote: > > > FlatSpec extends org.scalatest.Suite so it should be picked up as well. > > > > I've just tested it locally with a small project and it works as > expected. > > > > I've created a gist that you can download/clone > > https://gist.github.com/3188848 to try out. > > > > On Fri, Jul 27, 2012 at 8:11 AM, Anthony Bargnesi > >wrote: > > > > > Hello, > > > > > > I have a project in scala that I'm attempting to test with > > > buildr/ScalaTest. It is configured like: > > > > > > > > > define 'scala.project' do > > > require 'buildr/scala' > > > Buildr.settings.build['scala.version'] = "2.9.1" > > > test.using :scalatest > > > compile.using :target => '1.5' > > > compile.with SCALA_TEST > > > package(:jar, :id => PICKUP + 'scala.project').with \ > > > :manifest => file(MANIFEST), > > > :meta_inf => file(SPRING_META) > > > > > > end > > > > > > > > > > > > I have two org.scalatest.FlatSpec specification tests that I want to > > > run. I ran "buildr test" and "buildr test --trace" and did not see > > > these tests run. > > > > > > > > > The documentation says that ScalaTest's org.scalatest.Suite classes > > > will be picked up, but what about the FlatSpec classes? > > > > > > > > > Thanks! > > > > > > Tony > > > > > > --f46d0435c0729f6e6004c5d269c7--