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

[ANN] ScalaTest 1.0 Released

19 replies
Bill Venners
Joined: 2008-12-18,
User offline. Last seen 31 weeks 5 days ago.

Hi All,

I have just released ScalaTest version 1.0, and a new website to go with it:

http://www.scalatest.org/

You can download a zip file from here:

http://www.scalatest.org/download

Or grab it from the scala-tools.org Maven repository:

group id: org.scalatest
artifact id: scalatest
version: 1.0

ScalaTest 1.0 includes a lot of enhancements from the previous
version, and includes a few breaking changes. You can get a list of
what has changed in the release notes:

http://www.scalatest.org/release_notes

Please post any questions about upgrading to 1.0 to the
scalatest-users mailing list:

http://groups.google.com/group/scalatest-users

Thanks and enjoy.

Bill
----
Bill Venners
Artima, Inc.
http://www.artima.com

Volodymyr Bezuglyy
Joined: 2009-10-12,
User offline. Last seen 42 years 45 weeks ago.
Private field for constructor's parameter

Why in this case private field for "str"
class Foo(str: String) {
val len = str.length
def getLen = len
def getStr = str
}

will be generated

public class Foo implements ScalaObject
{
private final int len;
private final String str;
public Foo(String str)
{
this.str = str;
super();
len = str.length();
}

public String getStr()
{
return str;
}

public int getLen()
{
return len();
}

public int len()
{
return len;
}
...
}

But in this case
class Foo(str: String) {
val len = str.length
def getLen = len
}

will not be generated

public class Foo implements ScalaObject
{

private final int len;

public Foo(String str)
{
len = str.length();
}

public int getLen()
{
return len();
}

public int len()
{
return len;
}
...
}

Why it is allowed to point to constructor's parameters from some method?
Why there is no compile-time error in the first example on the next
line?
def getStr = str

Jonas Bonér
Joined: 2008-12-19,
User offline. Last seen 42 years 45 weeks ago.
Re: [ANN] ScalaTest 1.0 Released

Congrats. Great job. ScalaTest is my first choice.

2009/10/12 Bill Venners :
> Hi All,
>
> I have just released ScalaTest version 1.0, and a new website to go with it:
>
> http://www.scalatest.org/
>
> You can download a zip file from here:
>
> http://www.scalatest.org/download
>
> Or grab it from the scala-tools.org Maven repository:
>
> group id: org.scalatest
> artifact id: scalatest
> version: 1.0
>
> ScalaTest 1.0 includes a lot of enhancements from the previous
> version, and includes a few breaking changes. You can get a list of
> what has changed in the release notes:
>
> http://www.scalatest.org/release_notes
>
> Please post any questions about upgrading to 1.0 to the
> scalatest-users mailing list:
>
> http://groups.google.com/group/scalatest-users
>
> Thanks and enjoy.
>
> Bill
> ----
> Bill Venners
> Artima, Inc.
> http://www.artima.com
>

Jonas Bonér
Joined: 2008-12-19,
User offline. Last seen 42 years 45 weeks ago.
Re: [ANN] ScalaTest 1.0 Released

Congrats. Great job. ScalaTest is my first choice.

2009/10/12 Bill Venners :
> Hi All,
>
> I have just released ScalaTest version 1.0, and a new website to go with it:
>
> http://www.scalatest.org/
>
> You can download a zip file from here:
>
> http://www.scalatest.org/download
>
> Or grab it from the scala-tools.org Maven repository:
>
> group id: org.scalatest
> artifact id: scalatest
> version: 1.0
>
> ScalaTest 1.0 includes a lot of enhancements from the previous
> version, and includes a few breaking changes. You can get a list of
> what has changed in the release notes:
>
> http://www.scalatest.org/release_notes
>
> Please post any questions about upgrading to 1.0 to the
> scalatest-users mailing list:
>
> http://groups.google.com/group/scalatest-users
>
> Thanks and enjoy.
>
> Bill
> ----
> Bill Venners
> Artima, Inc.
> http://www.artima.com
>

Seth Tisue
Joined: 2008-12-16,
User offline. Last seen 34 weeks 3 days ago.
Re: Private field for constructor's parameter

>>>>> "Volodymyr" == Volodymyr Bezuglyy writes:

Volodymyr> Why it is allowed to point to constructor's parameters from
Volodymyr> some method?

Because it's extremely convenient?

Kevin Wright
Joined: 2009-06-09,
User offline. Last seen 49 weeks 3 days ago.
Re: [scala-announce] [ANN] ScalaTest 1.0 Released

Top showing!

+1 beer to bill :)

On Mon, Oct 12, 2009 at 2:56 PM, Bill Venners wrote:
> Hi All,
>
> I have just released ScalaTest version 1.0, and a new website to go with it:
>
> http://www.scalatest.org/
>
> You can download a zip file from here:
>
> http://www.scalatest.org/download
>
> Or grab it from the scala-tools.org Maven repository:
>
> group id: org.scalatest
> artifact id: scalatest
> version: 1.0
>
> ScalaTest 1.0 includes a lot of enhancements from the previous
> version, and includes a few breaking changes. You can get a list of
> what has changed in the release notes:
>
> http://www.scalatest.org/release_notes
>
> Please post any questions about upgrading to 1.0 to the
> scalatest-users mailing list:
>
> http://groups.google.com/group/scalatest-users
>
> Thanks and enjoy.
>
> Bill
> ----
> Bill Venners
> Artima, Inc.
> http://www.artima.com
>

Kevin Wright
Joined: 2009-06-09,
User offline. Last seen 49 weeks 3 days ago.
Re: [scala-announce] [ANN] ScalaTest 1.0 Released

Top showing!

+1 beer to bill :)

On Mon, Oct 12, 2009 at 2:56 PM, Bill Venners wrote:
> Hi All,
>
> I have just released ScalaTest version 1.0, and a new website to go with it:
>
> http://www.scalatest.org/
>
> You can download a zip file from here:
>
> http://www.scalatest.org/download
>
> Or grab it from the scala-tools.org Maven repository:
>
> group id: org.scalatest
> artifact id: scalatest
> version: 1.0
>
> ScalaTest 1.0 includes a lot of enhancements from the previous
> version, and includes a few breaking changes. You can get a list of
> what has changed in the release notes:
>
> http://www.scalatest.org/release_notes
>
> Please post any questions about upgrading to 1.0 to the
> scalatest-users mailing list:
>
> http://groups.google.com/group/scalatest-users
>
> Thanks and enjoy.
>
> Bill
> ----
> Bill Venners
> Artima, Inc.
> http://www.artima.com
>

Caoyuan
Joined: 2009-01-18,
User offline. Last seen 42 years 45 weeks ago.
Re: [ANN] ScalaTest 1.0 Released

Congrats. BTW, does it also work under Scala-2.8.0 ?

-Caoyuan

On Mon, Oct 12, 2009 at 9:56 PM, Bill Venners wrote:
> Hi All,
>
> I have just released ScalaTest version 1.0, and a new website to go with it:
>
> http://www.scalatest.org/
>
> You can download a zip file from here:
>
> http://www.scalatest.org/download
>
> Or grab it from the scala-tools.org Maven repository:
>
> group id: org.scalatest
> artifact id: scalatest
> version: 1.0
>
> ScalaTest 1.0 includes a lot of enhancements from the previous
> version, and includes a few breaking changes. You can get a list of
> what has changed in the release notes:
>
> http://www.scalatest.org/release_notes
>
> Please post any questions about upgrading to 1.0 to the
> scalatest-users mailing list:
>
> http://groups.google.com/group/scalatest-users
>
> Thanks and enjoy.
>
> Bill
> ----
> Bill Venners
> Artima, Inc.
> http://www.artima.com
>

Ricky Clarkson
Joined: 2008-12-19,
User offline. Last seen 3 years 2 weeks ago.
Re: Private field for constructor's parameter

> Why in this case private field for "str"
> class Foo(str: String) {
>    val len = str.length
>    def getLen = len
>    def getStr = str
> }
>
> will be generated

Because getStr needs to evaluate str whenever it is called. That
seems a reasonable use of a field to me.

> But in this case
> class Foo(str: String) {
>    val len = str.length
>    def getLen = len
> }
>
> will not be generated

Because the value of it would never be read.

> Why it is allowed to point to constructor's parameters from some method?

Because those are parameters to the class, and are thus in scope for the class.

> Why there is no compile-time error in the first example on the next
> line?
> def getStr = str

Because str is in scope.

The real question is probably why Scala has this feature. The feature
removes a lot of repetitive code.

Caoyuan
Joined: 2009-01-18,
User offline. Last seen 42 years 45 weeks ago.
Re: [ANN] ScalaTest 1.0 Released

Congrats. BTW, does it also work under Scala-2.8.0 ?

-Caoyuan

On Mon, Oct 12, 2009 at 9:56 PM, Bill Venners wrote:
> Hi All,
>
> I have just released ScalaTest version 1.0, and a new website to go with it:
>
> http://www.scalatest.org/
>
> You can download a zip file from here:
>
> http://www.scalatest.org/download
>
> Or grab it from the scala-tools.org Maven repository:
>
> group id: org.scalatest
> artifact id: scalatest
> version: 1.0
>
> ScalaTest 1.0 includes a lot of enhancements from the previous
> version, and includes a few breaking changes. You can get a list of
> what has changed in the release notes:
>
> http://www.scalatest.org/release_notes
>
> Please post any questions about upgrading to 1.0 to the
> scalatest-users mailing list:
>
> http://groups.google.com/group/scalatest-users
>
> Thanks and enjoy.
>
> Bill
> ----
> Bill Venners
> Artima, Inc.
> http://www.artima.com
>

Bill Venners
Joined: 2008-12-18,
User offline. Last seen 31 weeks 5 days ago.
Re: [ANN] ScalaTest 1.0 Released

Hi Caoyuan,

Yes, there's a SNAPSHOT of ScalaTest 1.0 for Scala 2.8.0. I forgot to
include the info on how to get that SNAPSHOT on the download page.
I'll add it. You have to get it from the scala-tools.org Maven
repository:

group id: org.scalatest
artifact id: scalatest
version: 1.0-for-scala-2.8.0-SNAPSHOT

Thanks.

Bill

On Mon, Oct 12, 2009 at 7:52 AM, Caoyuan wrote:
> Congrats. BTW, does it also work under Scala-2.8.0 ?
>
> -Caoyuan
>
> On Mon, Oct 12, 2009 at 9:56 PM, Bill Venners wrote:
>> Hi All,
>>
>> I have just released ScalaTest version 1.0, and a new website to go with it:
>>
>> http://www.scalatest.org/
>>
>> You can download a zip file from here:
>>
>> http://www.scalatest.org/download
>>
>> Or grab it from the scala-tools.org Maven repository:
>>
>> group id: org.scalatest
>> artifact id: scalatest
>> version: 1.0
>>
>> ScalaTest 1.0 includes a lot of enhancements from the previous
>> version, and includes a few breaking changes. You can get a list of
>> what has changed in the release notes:
>>
>> http://www.scalatest.org/release_notes
>>
>> Please post any questions about upgrading to 1.0 to the
>> scalatest-users mailing list:
>>
>> http://groups.google.com/group/scalatest-users
>>
>> Thanks and enjoy.
>>
>> Bill
>> ----
>> Bill Venners
>> Artima, Inc.
>> http://www.artima.com
>>
>

Bill Venners
Joined: 2008-12-18,
User offline. Last seen 31 weeks 5 days ago.
Re: [ANN] ScalaTest 1.0 Released

Hi Caoyuan,

Yes, there's a SNAPSHOT of ScalaTest 1.0 for Scala 2.8.0. I forgot to
include the info on how to get that SNAPSHOT on the download page.
I'll add it. You have to get it from the scala-tools.org Maven
repository:

group id: org.scalatest
artifact id: scalatest
version: 1.0-for-scala-2.8.0-SNAPSHOT

Thanks.

Bill

On Mon, Oct 12, 2009 at 7:52 AM, Caoyuan wrote:
> Congrats. BTW, does it also work under Scala-2.8.0 ?
>
> -Caoyuan
>
> On Mon, Oct 12, 2009 at 9:56 PM, Bill Venners wrote:
>> Hi All,
>>
>> I have just released ScalaTest version 1.0, and a new website to go with it:
>>
>> http://www.scalatest.org/
>>
>> You can download a zip file from here:
>>
>> http://www.scalatest.org/download
>>
>> Or grab it from the scala-tools.org Maven repository:
>>
>> group id: org.scalatest
>> artifact id: scalatest
>> version: 1.0
>>
>> ScalaTest 1.0 includes a lot of enhancements from the previous
>> version, and includes a few breaking changes. You can get a list of
>> what has changed in the release notes:
>>
>> http://www.scalatest.org/release_notes
>>
>> Please post any questions about upgrading to 1.0 to the
>> scalatest-users mailing list:
>>
>> http://groups.google.com/group/scalatest-users
>>
>> Thanks and enjoy.
>>
>> Bill
>> ----
>> Bill Venners
>> Artima, Inc.
>> http://www.artima.com
>>
>

ebowman
Joined: 2009-04-13,
User offline. Last seen 1 year 30 weeks ago.
Re: [ANN] ScalaTest 1.0 Released

Is there a version of scalacheck that works as well with 2.8.0?

Thanks,
Eric

Bill Venners wrote:
> Hi Caoyuan,
>
> Yes, there's a SNAPSHOT of ScalaTest 1.0 for Scala 2.8.0. I forgot to
> include the info on how to get that SNAPSHOT on the download page.
> I'll add it. You have to get it from the scala-tools.org Maven
> repository:
>
> group id: org.scalatest
> artifact id: scalatest
> version: 1.0-for-scala-2.8.0-SNAPSHOT
>
> Thanks.
>
> Bill
>
> On Mon, Oct 12, 2009 at 7:52 AM, Caoyuan wrote:
>
>> Congrats. BTW, does it also work under Scala-2.8.0 ?
>>
>> -Caoyuan
>>
>> On Mon, Oct 12, 2009 at 9:56 PM, Bill Venners wrote:
>>
>>> Hi All,
>>>
>>> I have just released ScalaTest version 1.0, and a new website to go with it:
>>>
>>> http://www.scalatest.org/
>>>
>>> You can download a zip file from here:
>>>
>>> http://www.scalatest.org/download
>>>
>>> Or grab it from the scala-tools.org Maven repository:
>>>
>>> group id: org.scalatest
>>> artifact id: scalatest
>>> version: 1.0
>>>
>>> ScalaTest 1.0 includes a lot of enhancements from the previous
>>> version, and includes a few breaking changes. You can get a list of
>>> what has changed in the release notes:
>>>
>>> http://www.scalatest.org/release_notes
>>>
>>> Please post any questions about upgrading to 1.0 to the
>>> scalatest-users mailing list:
>>>
>>> http://groups.google.com/group/scalatest-users
>>>
>>> Thanks and enjoy.
>>>
>>> Bill
>>> ----
>>> Bill Venners
>>> Artima, Inc.
>>> http://www.artima.com
>>>
>>>
>
>
>
>

Bill Venners
Joined: 2008-12-18,
User offline. Last seen 31 weeks 5 days ago.
Re: [ANN] ScalaTest 1.0 Released

Hi Eric,

I have one that I compile against, but it needs to be updated. I think
Rickard has made new ones since then. I've CC'd him. Rickard, can you
point us to the most recent ScalaCheck build for Scala 2.8?

Thanks.

Bill

On Mon, Oct 12, 2009 at 10:14 AM, Eric Bowman wrote:
> Is there a version of scalacheck that works as well with 2.8.0?
>
> Thanks,
> Eric
>
> Bill Venners wrote:
>> Hi Caoyuan,
>>
>> Yes, there's a SNAPSHOT of ScalaTest 1.0 for Scala 2.8.0. I forgot to
>> include the info on how to get that SNAPSHOT on the download page.
>> I'll add it. You have to get it from the scala-tools.org Maven
>> repository:
>>
>> group id: org.scalatest
>> artifact id: scalatest
>> version: 1.0-for-scala-2.8.0-SNAPSHOT
>>
>> Thanks.
>>
>> Bill
>>
>> On Mon, Oct 12, 2009 at 7:52 AM, Caoyuan wrote:
>>
>>> Congrats. BTW, does it also work under Scala-2.8.0 ?
>>>
>>> -Caoyuan
>>>
>>> On Mon, Oct 12, 2009 at 9:56 PM, Bill Venners wrote:
>>>
>>>> Hi All,
>>>>
>>>> I have just released ScalaTest version 1.0, and a new website to go with it:
>>>>
>>>> http://www.scalatest.org/
>>>>
>>>> You can download a zip file from here:
>>>>
>>>> http://www.scalatest.org/download
>>>>
>>>> Or grab it from the scala-tools.org Maven repository:
>>>>
>>>> group id: org.scalatest
>>>> artifact id: scalatest
>>>> version: 1.0
>>>>
>>>> ScalaTest 1.0 includes a lot of enhancements from the previous
>>>> version, and includes a few breaking changes. You can get a list of
>>>> what has changed in the release notes:
>>>>
>>>> http://www.scalatest.org/release_notes
>>>>
>>>> Please post any questions about upgrading to 1.0 to the
>>>> scalatest-users mailing list:
>>>>
>>>> http://groups.google.com/group/scalatest-users
>>>>
>>>> Thanks and enjoy.
>>>>
>>>> Bill
>>>> ----
>>>> Bill Venners
>>>> Artima, Inc.
>>>> http://www.artima.com
>>>>
>>>>
>>
>>
>>
>>
>
>
> --
> Eric Bowman
> Boboco Ltd
> ebowman@boboco.ie
> http://www.boboco.ie/ebowman/pubkey.pgp
> +35318394189/+353872801532
>
>

rickynils
Joined: 2008-11-17,
User offline. Last seen 1 year 17 weeks ago.
Re: [ANN] ScalaTest 1.0 Released

Hi,

The current 2.8 branch of ScalaCheck does not build with the current
Scala trunk, since there was a change in Scala's array implementation,
but I will fix this ASAP (hopefully tonight, CEST). I will then
publish ScalaCheck 1.7-SNAPSHOT on
http://scala-tools.org/repo-snapshots :

group id: org.scala-tools.testing
artifact id: scalacheck_2.8.0-SNAPSHOT
version: 1.7-SNAPSHOT

Regards,
Rickard

Quoting Bill Venners :

> Hi Eric,
>
> I have one that I compile against, but it needs to be updated. I think
> Rickard has made new ones since then. I've CC'd him. Rickard, can you
> point us to the most recent ScalaCheck build for Scala 2.8?
>
> Thanks.
>
> Bill
>
> On Mon, Oct 12, 2009 at 10:14 AM, Eric Bowman wrote:
>> Is there a version of scalacheck that works as well with 2.8.0?
>>
>> Thanks,
>> Eric
>>
>> Bill Venners wrote:
>>> Hi Caoyuan,
>>>
>>> Yes, there's a SNAPSHOT of ScalaTest 1.0 for Scala 2.8.0. I forgot to
>>> include the info on how to get that SNAPSHOT on the download page.
>>> I'll add it. You have to get it from the scala-tools.org Maven
>>> repository:
>>>
>>> group id: org.scalatest
>>> artifact id: scalatest
>>> version: 1.0-for-scala-2.8.0-SNAPSHOT
>>>
>>> Thanks.
>>>
>>> Bill
>>>
>>> On Mon, Oct 12, 2009 at 7:52 AM, Caoyuan wrote:
>>>
>>>> Congrats. BTW, does it also work under Scala-2.8.0 ?
>>>>
>>>> -Caoyuan
>>>>
>>>> On Mon, Oct 12, 2009 at 9:56 PM, Bill Venners wrote:
>>>>
>>>>> Hi All,
>>>>>
>>>>> I have just released ScalaTest version 1.0, and a new website to
>>>>> go with it:
>>>>>
>>>>> http://www.scalatest.org/
>>>>>
>>>>> You can download a zip file from here:
>>>>>
>>>>> http://www.scalatest.org/download
>>>>>
>>>>> Or grab it from the scala-tools.org Maven repository:
>>>>>
>>>>> group id: org.scalatest
>>>>> artifact id: scalatest
>>>>> version: 1.0
>>>>>
>>>>> ScalaTest 1.0 includes a lot of enhancements from the previous
>>>>> version, and includes a few breaking changes. You can get a list of
>>>>> what has changed in the release notes:
>>>>>
>>>>> http://www.scalatest.org/release_notes
>>>>>
>>>>> Please post any questions about upgrading to 1.0 to the
>>>>> scalatest-users mailing list:
>>>>>
>>>>> http://groups.google.com/group/scalatest-users
>>>>>
>>>>> Thanks and enjoy.
>>>>>
>>>>> Bill
>>>>> ----
>>>>> Bill Venners
>>>>> Artima, Inc.
>>>>> http://www.artima.com
>>>>>
>>>>>
>>>
>>>
>>>
>>>
>>
>>
>> --
>> Eric Bowman
>> Boboco Ltd
>> ebowman@boboco.ie
>> http://www.boboco.ie/ebowman/pubkey.pgp
>> +35318394189/+353872801532
>>
>>
>
>
>
> --
> Bill Venners
> Artima, Inc.
> http://www.artima.com
>

phkoester
Joined: 2009-08-23,
User offline. Last seen 42 years 45 weeks ago.
Re: [ANN] ScalaTest 1.0 Released

> Hi All,
>
> I have just released ScalaTest version 1.0, and a new website to go with it:

Hi Bill,

this looks and sounds great, but it's not compatible with Scala 2.8, is it?

Bill Venners
Joined: 2008-12-18,
User offline. Last seen 31 weeks 5 days ago.
Re: [ANN] ScalaTest 1.0 Released

Hi Philip,

There's a snapshot for 2.8. Here's the info:

group id: org.scalatest
artifact id: scalatest
version: 1.0-for-scala-2.8.0-SNAPSHOT

It is for this nightly build:

scala-2.8.0.r18997-b20091009021954

I will be adding the revision to the SNAPSHOT name soon, and also put
this info on the download page of the scalatest.org website (I forgot
to do this yesterday).

Thanks.

Bill
On Tue, Oct 13, 2009 at 12:13 PM, Philip Köster wrote:
>> Hi All,
>>
>> I have just released ScalaTest version 1.0, and a new website to go with
>> it:
>
> Hi Bill,
>
> this looks and sounds great, but it's not compatible with Scala 2.8, is it?
>

Bill Venners
Joined: 2008-12-18,
User offline. Last seen 31 weeks 5 days ago.
Re: [ANN] ScalaTest 1.0 Released

Hi Philip,

There's a snapshot for 2.8. Here's the info:

group id: org.scalatest
artifact id: scalatest
version: 1.0-for-scala-2.8.0-SNAPSHOT

It is for this nightly build:

scala-2.8.0.r18997-b20091009021954

I will be adding the revision to the SNAPSHOT name soon, and also put
this info on the download page of the scalatest.org website (I forgot
to do this yesterday).

Thanks.

Bill
On Tue, Oct 13, 2009 at 12:13 PM, Philip Köster wrote:
>> Hi All,
>>
>> I have just released ScalaTest version 1.0, and a new website to go with
>> it:
>
> Hi Bill,
>
> this looks and sounds great, but it's not compatible with Scala 2.8, is it?
>

phkoester
Joined: 2009-08-23,
User offline. Last seen 42 years 45 weeks ago.
Re: [ANN] ScalaTest 1.0 Released

> There's a snapshot for 2.8. Here's the info:
>
> group id: org.scalatest
> artifact id: scalatest
> version: 1.0-for-scala-2.8.0-SNAPSHOT
>
> It is for this nightly build:
>
> scala-2.8.0.r18997-b20091009021954

And on which repo? It's not on Central, of course ...

Bill Venners
Joined: 2008-12-18,
User offline. Last seen 31 weeks 5 days ago.
Re: [ANN] ScalaTest 1.0 Released

Hi Philip,

Sorry, forgot to include the repo. It is on scala-tools.org, but in
the snapshots area:

http://www.scala-tools.org/repo-snapshots/org/scalatest/scalatest/1.0-fo...

Thanks.

Bill

On Tue, Oct 13, 2009 at 2:23 PM, Philip Köster wrote:
>> There's a snapshot for 2.8. Here's the info:
>>
>> group id: org.scalatest
>> artifact id: scalatest
>> version: 1.0-for-scala-2.8.0-SNAPSHOT
>>
>> It is for this nightly build:
>>
>> scala-2.8.0.r18997-b20091009021954
>
> And on which repo? It's not on Central, of course ...
>

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