This page is no longer maintained — Please continue to the home page at www.scala-lang.org

scala specs & progress bar

6 replies
normen.mueller
Joined: 2008-10-31,
User offline. Last seen 3 years 8 weeks ago.

He,

I have the following scala specs:

mypackage.test.specific

class ATest extends JUnit4(ASpec)
object ASpec extends Specification { ... }

class BTest extends JUnit4(ASpec)
object BSpec extends Specification { ... }

mypackge.test

class AllTest extends JUnit4(
mypackage.test.specific.ASpec,
mypackage.test.specific.BSpec)

Both tests, ATest and BTest, are taking quite some time. So my question is, if it is possible to display a progress bar in eclipse's JUnit view similar to running Java JUnit tests. For example, running similar Java JUnit test displays the progress of each individual test and one can see the gree/ red bar increasing. Otherwise one always has to wait till the end of all scala specs to see the entire green/ red bar.

This is not an urgent issue, just for convenience.

Cheers,

etorreborre
Joined: 2008-09-03,
User offline. Last seen 1 year 22 weeks ago.
Re: scala specs & progress bar

Hi Normen,

This must be a regression because this used to work before.

I created an issue for that:
http://code.google.com/p/specs/issues/detail?id=62.

Thanks,

Eric.

Normen Mueller wrote:
>
> He,
>
> I have the following scala specs:
>
> mypackage.test.specific
>
> class ATest extends JUnit4(ASpec)
> object ASpec extends Specification { ... }
>
> class BTest extends JUnit4(ASpec)
> object BSpec extends Specification { ... }
>
> mypackge.test
>
> class AllTest extends JUnit4(
> mypackage.test.specific.ASpec,
> mypackage.test.specific.BSpec)
>
> Both tests, ATest and BTest, are taking quite some time. So my question
> is, if it is possible to display a progress bar in eclipse's JUnit view
> similar to running Java JUnit tests. For example, running similar Java
> JUnit test displays the progress of each individual test and one can see
> the gree/ red bar increasing. Otherwise one always has to wait till the
> end of all scala specs to see the entire green/ red bar.
>
> This is not an urgent issue, just for convenience.
>
>
> Cheers,

etorreborre
Joined: 2008-09-03,
User offline. Last seen 1 year 22 weeks ago.
Re: scala specs & progress bar

Just that you know, this issue is fixed in specs-1.4.4-SNAPSHOT.

Eric.

normen.mueller
Joined: 2008-10-31,
User offline. Last seen 3 years 8 weeks ago.
Re: scala specs & progress bar

Cool! How do I get it?

Eric Torreborre wrote:
> Just that you know, this issue is fixed in specs-1.4.4-SNAPSHOT.
>
> Eric.

Cheers,

etorreborre
Joined: 2008-09-03,
User offline. Last seen 1 year 22 weeks ago.
Re: scala specs & progress bar

The snapshots are located in the Scala tools maven repository:

http://scala-tools.org/repo-snapshots/org/specs/specs/1.4.4-SNAPSHOT/

E.

Normen Mueller wrote:
>
> Cool! How do I get it?
>
> Eric Torreborre wrote:
>> Just that you know, this issue is fixed in specs-1.4.4-SNAPSHOT.
>>
>> Eric.
>
> Cheers,

normen.mueller
Joined: 2008-10-31,
User offline. Last seen 3 years 8 weeks ago.
Re: scala specs & progress bar

oops, forgot to mention: Works nicely even with JUnit 4.5 (recommended is 4.4)

Eric Torreborre wrote:
> The snapshots are located in the Scala tools maven repository:
>
> http://scala-tools.org/repo-snapshots/org/specs/specs/1.4.4-SNAPSHOT/
>
> E.

Cheers,

normen.mueller
Joined: 2008-10-31,
User offline. Last seen 3 years 8 weeks ago.
Re: scala specs & progress bar

Thanks! Works nicely ;)

Eric Torreborre wrote:
> The snapshots are located in the Scala tools maven repository:
>
> http://scala-tools.org/repo-snapshots/org/specs/specs/1.4.4-SNAPSHOT/
>
> E.
>
>
> Normen Mueller wrote:
>> Cool! How do I get it?
>>
>> Eric Torreborre wrote:
>>> Just that you know, this issue is fixed in specs-1.4.4-SNAPSHOT.
>>>
>>> Eric.
>> Cheers,

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland