At the moment the simplest solution I found is manually changing the
buildr-1.4.1-java\lib\buildr\scala\bdd.rb file of buildr and changing the
default version of specs to the 2.8 one. Then it workd flawlessly with:
test.using(:specs)
test.with(MOCKITO)
I suppose in 1.4.2 this will be the default.but it's a solution for all the
people using 1.4.1 now.
On 15 September 2010 20:01, Rafa de Castro <rafael@refugioseguro.com> wrote:
> I'm building my project with buildr and I got it to compile but I can't
> manage to make it run the tests.
>
> The global project is configured with
>
> Buildr.settings.build['scala.version'] = "2.8.0"
> require 'buildr/scala'
>
> And I read that you must configure your subproject as
>
> test.using(:junit)
> test.with(SPECS, MOCKITO)
>
> Then the correct version of specs is downloaded and the correct mockito.
> The tests are also compiled correctly but they just don't run.
>
> If I try to run using
>
> test.using(:specs)
> test.with(MOCKITO)
>
> the version for scala 2.7 is downloaded and my tests do not run
>
> When I run buildr test:peepingtom:client --trace I get
>
> ** Invoke peepingtom:client:test:setup (first_time)
> ** Execute peepingtom:client:test:setup
> ** Execute peepingtom:client:test
> rm -rf D:/Paki/peepingtom/client/reports/junit
> rm -rf D:/Paki/peepingtom/client/target/junit-failed
> ** Invoke peepingtom:client:test:teardown (first_time)
> ** Execute peepingtom:client:test:teardown
>
> So I've been a bit lost for 2 days now. Do I need to add something else to
> run the tests?
>
> Thanks a lot in advance.
>
>
> --
> Rafa de Castro
> rafael@micubiculo.com
>
--
Rafa de Castro
rafael@micubiculo.com
|