forked from typelevel/scalacheck
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRELEASE
1097 lines (737 loc) · 32.7 KB
/
RELEASE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
RELEASE NOTES
ScalaCheck 1.10
Author: Rickard Nilsson (rickard.nilsson@telia.com)
ScalaCheck is a powerful tool for automatic unit testing of Scala and Java
programs. It features automatic test case generation and simplification of
failing test cases. ScalaCheck started out as a Scala port of the Haskell
library QuickCheck, and has since evolved and been extended with features not
found in Haskell QuickCheck.
The main features of ScalaCheck are:
* Specifications are written directly in Scala, using combinators
from the ScalaCheck library.
* Properties are tested automatically, with test data generated by
ScalaCheck. Data generation can be precisely controlled, and generation
of custom data types is simple to define.
* Failing test cases are simplified automatically, which makes pin-pointing
error causes easier.
* Support for stateful testing of command sequences, and simplification of
failing command sequences.
In ScalaCheck 1.10, all methods that was deprecated in version 1.8 or earlier
have been removed, so if you haven't fixed old deprecation warnings yet you
might run into compilation errors.
During the development of ScalaCheck 1.10, the project management system
switched from Google Code to GitHub. This means that you should go to GitHub
for checking out the source or reporting issues. The releases are still
published on Google Code, but that might change in the future.
ScalaCheck links:
* Project site
http://www.scalacheck.org
* User Guide
http://code.google.com/p/scalacheck/wiki/UserGuide
* API documentation
http://scalacheck.googlecode.com/svn/artifacts/1.10/doc/api/index.html
* Mailing list
scalacheck@googlegroups.com
See http://groups.google.com/group/scalacheck for information and
registration.
* Installation with sbaz
sbaz update
sbaz install scalacheck
If you already have an earlier version of ScalaCheck installed, you
just need to run:
sbaz upgrade
* Binary JAR
http://scalacheck.googlecode.com/files/scalacheck_2.9.0-1.10.jar
* Source JAR
http://scalacheck.googlecode.com/files/scalacheck_2.9.0-1.10-sources.jar
* Source repository
https://github.com/rickynils/scalacheck
* Maven repository at scala-tools.org
Add this to your pom.xml:
<repositories>
<repository>
<id>scala-tools.org</id>
<name>Scala-Tools Maven2 Repository</name>
<url>http://scala-tools.org/repo-releases</url>
</repository>
</repositories>
<dependency>
<groupId>org.scala-tools.testing</groupId>
<artifactId>scalacheck_2.9.0</artifactId>
<version>1.10</version>
</dependency>
PREVIOUS RELEASES
ScalaCheck 1.9
Author: Rickard Nilsson (rickard.nilsson@telia.com)
ScalaCheck is a powerful tool for automatic unit testing of Scala and Java
programs. It features automatic test case generation and simplification of
failing test cases. ScalaCheck started out as a Scala port of the Haskell
library QuickCheck, and has since evolved and been extended with features not
found in Haskell QuickCheck.
The main features of ScalaCheck is:
* Specifications are written directly in Scala, using combinators
from the ScalaCheck library.
* Properties are tested automatically, with test data generated by
ScalaCheck. Data generation can be precisely controlled, and generation
of custom data types is simple to define.
* Failing test cases are simplified automatically, which makes pin-pointing
error causes easier.
* Support for stateful testing of command sequences, and simplification of
failing command sequences.
ScalaCheck 1.9 introduces a number of bug fixes and a couple of new functions.
Some serious bugs were fixed in the Commands module. Also, some changes has
been done to support Scala 2.9 properly.
ScalaCheck links:
* Project site
http://www.scalacheck.org
* User Guide
http://code.google.com/p/scalacheck/wiki/UserGuide
* API documentation
http://scalacheck.googlecode.com/svn/artifacts/1.9/doc/api/index.html
* Mailing list
scalacheck@googlegroups.com
See http://groups.google.com/group/scalacheck for information and
registration.
* Installation with sbaz
sbaz update
sbaz install scalacheck
If you already have an earlier version of ScalaCheck installed, you
just need to run:
sbaz upgrade
* Binary JAR
http://scalacheck.googlecode.com/files/scalacheck_2.9.0-1.9.jar
* Source JAR
http://scalacheck.googlecode.com/files/scalacheck_2.9.0-1.9-sources.jar
* Source repository
http://scalacheck.googlecode.com/svn/
* Maven repository at scala-tools.org
Add this to your pom.xml:
<repositories>
<repository>
<id>scala-tools.org</id>
<name>Scala-Tools Maven2 Repository</name>
<url>http://scala-tools.org/repo-releases</url>
</repository>
</repositories>
<dependency>
<groupId>org.scala-tools.testing</groupId>
<artifactId>scalacheck_2.9.0</artifactId>
<version>1.9</version>
</dependency>
ScalaCheck 1.8
Author: Rickard Nilsson (rickard.nilsson@telia.com)
ScalaCheck is a powerful tool for automatic unit testing of Scala and Java
programs. It features automatic test case generation and simplification of
failing test cases. ScalaCheck started out as a Scala port of the Haskell
library QuickCheck, and has since evolved and been extended with features not
found in Haskell QuickCheck.
The main features of ScalaCheck is:
* Specifications are written directly in Scala, using combinators
from the ScalaCheck library.
* Properties are tested automatically, with test data generated by
ScalaCheck. Data generation can be precisely controlled, and generation
of custom data types is simple to define.
* Failing test cases are simplified automatically, which makes pin-pointing
error causes easier.
* Support for stateful testing of command sequences, and simplification of
failing command sequences.
ScalaCheck 1.8 brings several minor improvements and fixes to the table. For
example, the code in org.scalacheck.Test and org.scalacheck.Gen has been
simplified through the use of Scala's new support for named and default
parameters. Scala's new collection API has been integrated in ScalaCheck, which
have reduced the complexity in the collection-generating code. All these
changes and simplifications has lead to a number of deprecated methods in
ScalaCheck's API. You should make sure you're not using any deprecated methods,
since they will be removed in an upcoming release.
The test runner has also been improved in ScalaCheck 1.8. For example is it now
possible to set the verbosity level of the output. The support for
multi-threaded testing has also been rewritten, removing a bug and simplifying
the implementation.
Finally, some rather crucial bugs in Gen.choose and its related methods has
been fixed.
ScalaCheck links:
* Project site
http://www.scalacheck.org
* User Guide
http://code.google.com/p/scalacheck/wiki/UserGuide
* API documentation
http://scalacheck.googlecode.com/svn/artifacts/1.7/doc/api/index.html
* Mailing list
scalacheck@googlegroups.com
See http://groups.google.com/group/scalacheck for information and
registration.
* Installation with sbaz
sbaz update
sbaz install scalacheck
If you already have an earlier version of ScalaCheck installed, you
just need to run:
sbaz upgrade
* Binary JAR
http://scalacheck.googlecode.com/files/scalacheck_2.8.1-1.8.jar
* Source JAR
http://scalacheck.googlecode.com/files/scalacheck_2.8.1-1.8-sources.jar
* Source repository
http://scalacheck.googlecode.com/svn/
* Maven repository at scala-tools.org
Add this to your pom.xml:
<repositories>
<repository>
<id>scala-tools.org</id>
<name>Scala-Tools Maven2 Repository</name>
<url>http://scala-tools.org/repo-releases</url>
</repository>
</repositories>
<dependency>
<groupId>org.scala-tools.testing</groupId>
<artifactId>scalacheck_2.8.1</artifactId>
<version>1.8</version>
</dependency>
ScalaCheck 1.7
Author: Rickard Nilsson (rickard.nilsson@telia.com)
ScalaCheck is a powerful tool for automatic unit testing of Scala and Java
programs. It features automatic test case generation and simplification of
failing test cases. ScalaCheck started out as a Scala port of the Haskell
library QuickCheck, and has since evolved and been extended with features not
found in Haskell QuickCheck.
The main features of ScalaCheck is:
* Specifications are written directly in Scala, using combinators
from the ScalaCheck library.
* Properties are tested automatically, with test data generated by
ScalaCheck. Data generation can be precisely controlled, and generation
of custom data types is simple to define.
* Failing test cases are simplified automatically, which makes pin-pointing
error causes easier.
* Support for stateful testing of command sequences, and simplification of
failing command sequences.
The major feature of ScalaCheck 1.7 is that it is built for Scala 2.8.
As always, there are also several bug fixes and minor improvements to
the code.
ScalaCheck 1.7 has not been released for sbaz, since there is no final
version of Scala 2.8 out yet. However you can as usual get ScalaCheck
through its website or through Maven.
ScalaCheck links:
* Project site
http://www.scalacheck.org
* User Guide
http://code.google.com/p/scalacheck/wiki/UserGuide
* API documentation
http://scalacheck.googlecode.com/svn/artifacts/1.7/doc/api/index.html
* Mailing list
scalacheck@googlegroups.com
See http://groups.google.com/group/scalacheck for information and
registration.
* Binary JAR
http://scalacheck.googlecode.com/files/scalacheck_2.8.0.RC1-1.7.jar
* Source JAR
http://scalacheck.googlecode.com/files/scalacheck_2.8.0.RC1-1.7-sources.jar
* Source repository
http://scalacheck.googlecode.com/svn/
* Maven repository at scala-tools.org
Add this to your pom.xml:
<repositories>
<repository>
<id>scala-tools.org</id>
<name>Scala-Tools Maven2 Repository</name>
<url>http://scala-tools.org/repo-releases</url>
</repository>
</repositories>
<dependency>
<groupId>org.scala-tools.testing</groupId>
<artifactId>scalacheck_2.8.0.RC1</artifactId>
<version>1.7</version>
</dependency>
ScalaCheck 1.6
Author: Rickard Nilsson (rickard.nilsson@telia.com)
ScalaCheck is a powerful tool for automatic unit testing of Scala and Java
programs. It features automatic test case generation and simplification of
failing test cases. ScalaCheck started out as a Scala port of the Haskell
library QuickCheck, and has since evolved and been extended with features not
found in Haskell QuickCheck.
The main features of ScalaCheck is:
* Specifications are written directly in Scala, using combinators
from the ScalaCheck library.
* Properties are tested automatically, with test data generated by
ScalaCheck. Data generation can be precisely controlled, and generation
of custom data types is simple to define.
* Failing test cases are simplified automatically, which makes pin-pointing
error causes easier.
* Support for stateful testing of command sequences, and simplification of
failing command sequences.
Release 1.6 of ScalaCheck presents several minor changes and fixes that have
been developed during the ten months that have past since the last release.
Focus has been on making it even easier to define properties in a precise
manner. You can as always get more information on the changes in the latest
ScalaCheck release at http://code.google.com/p/scalacheck/wiki/ChangeHistory .
The User Guide has also been updated with relevant changes and additions.
ScalaCheck links:
* Project site
http://www.scalacheck.org
* User Guide
http://code.google.com/p/scalacheck/wiki/UserGuide
* API documentation
http://scalacheck.googlecode.com/svn/artifacts/1.6/doc/api/index.html
* Mailing list
scalacheck@googlegroups.com
See http://groups.google.com/group/scalacheck for information and
registration.
* Installation with sbaz
sbaz update
sbaz install scalacheck
If you already have an earlier version of ScalaCheck installed, you
just need to run:
sbaz upgrade
* Binary JAR
http://scalacheck.googlecode.com/files/ScalaCheck-1.6.jar
* Source JAR
http://scalacheck.googlecode.com/files/ScalaCheck-1.6-src.jar
* Source repository
http://scalacheck.googlecode.com/svn/
* Maven repository at scala-tools.org
Add this to your pom.xml:
<repositories>
<repository>
<id>scala-tools.org</id>
<name>Scala-Tools Maven2 Repository</name>
<url>http://scala-tools.org/repo-releases</url>
</repository>
</repositories>
<dependency>
<groupId>org.scala-tools.testing</groupId>
<artifactId>scalacheck</artifactId>
<version>1.6</version>
</dependency>
ScalaCheck 1.5
Author: Rickard Nilsson (rickard.nilsson@telia.com)
ScalaCheck is a powerful tool for automatic unit testing of Scala and Java
programs. It features automatic test case generation and minimization of
failing test cases. ScalaCheck started out as a Scala port of the Haskell
library QuickCheck, and has since evolved and been extended with features not
found in Haskell QuickCheck.
The main features of ScalaCheck is:
* Unit properties are written directly in Scala, using combinators
from the ScalaCheck library.
* Properties are tested automatically, with test data generated by
ScalaCheck. Data generation can be precisely controlled, and generation
of custom data types is simple to define.
* Failing test cases are minimised automatically, which makes pin-pointing
error causes easier.
* Support for stateful testing of command sequences, and minimization of
failing command sequences.
Version 1.5 of ScalaCheck is released mainly because the previous version is
not binary compatible with latest version of Scala, 2.7.2. However, there is
also some changes and feature additions which you can read about at
http://code.google.com/p/scalacheck/wiki/ChangeHistory.
ScalaCheck links:
* Project site
http://www.scalacheck.org
* User Guide
http://code.google.com/p/scalacheck/wiki/UserGuide
* API documentation
http://scalacheck.googlecode.com/svn/artifacts/1.5/doc/api/index.html
* Mailing list
scalacheck@googlegroups.com
See http://groups.google.com/group/scalacheck for information and
registration.
* Installation with sbaz
sbaz update
sbaz install scalacheck
If you already have an earlier version of ScalaCheck installed, you
just need to run:
sbaz upgrade
* Binary JAR
http://scalacheck.googlecode.com/files/ScalaCheck-1.5.jar
* Source JAR
http://scalacheck.googlecode.com/files/ScalaCheck-1.5-src.jar
* Source repository
http://scalacheck.googlecode.com/svn/
* Maven repository at scala-tools.org
Add this to your pom.xml:
<repositories>
<repository>
<id>scala-tools.org</id>
<name>Scala-Tools Maven2 Repository</name>
<url>http://scala-tools.org/repo-releases</url>
</repository>
</repositories>
<dependency>
<groupId>org.scalacheck</groupId>
<artifactId>scalacheck</artifactId>
<version>1.5</version>
</dependency>
ScalaCheck 1.4
Author: Rickard Nilsson (rickard.nilsson@telia.com)
ScalaCheck is a powerful tool for automatic unit testing of Scala and Java
programs. It features automatic test case generation and minimization of
failing test cases. ScalaCheck started out as a Scala port of the Haskell
library QuickCheck, and has since evolved and been extended with features not
found in Haskell QuickCheck.
The main features of ScalaCheck is:
* Unit properties are written directly in Scala, using combinators
from the ScalaCheck library.
* Properties are tested automatically, with test data generated by
ScalaCheck. Data generation can be precisely controlled, and generation
of custom data types is simple to define.
* Failing test cases are minimised automatically, which makes pin-pointing
error causes easier.
* Support for stateful testing of command sequences, and minimization of
failing command sequences.
This release of ScalaCheck introduces a number of minor fixes and improvements
since the last release. Most work has been done on trying to improve the test
reports for properties that fail. ScalaCheck now presents complete stack traces
if exceptions are thrown during property evaluation. It is now also possible to
collect statistics on generated test data which is presented in the test report
so you can inspect the distribution of test cases. This feature is similar to
the functionality found in Haskell QuickCheck. Furthermore, you can now label
individual parts of a property, to make it easier to find out exactly what part
of the property failed during evaluation. For more information, see the updated
User Guide, in the last paragraphs of the Properties section and the Generators
section.
There is now a mailing list available for all ScalaCheck users at
scalacheck@googlegroups.com. Here you can ask any question regarding
ScalaCheck. For more information and registration, visit the group site at
http://groups.google.com/group/scalacheck.
Please see the change history on ScalaCheck's project site for more details on
the fixes, changes and additions in this release.
ScalaCheck availability:
* Project site:
http://www.scalacheck.org
* User Guide
http://code.google.com/p/scalacheck/wiki/UserGuide
* Mailing list:
scalacheck@googlegroups.com
See http://groups.google.com/group/scalacheck for information and
registration.
* Installation with sbaz:
sbaz update
sbaz install scalacheck
If you already have an earlier version of ScalaCheck installed, you
just need to run:
sbaz upgrade
* Binary JAR:
http://scalacheck.googlecode.com/files/ScalaCheck-1.4.jar
* Source JAR:
http://scalacheck.googlecode.com/files/ScalaCheck-1.4-src.jar
* Source repository:
http://scalacheck.googlecode.com/svn/
* Maven repository at scala-tools.org:
Add this to your pom.xml:
<repositories>
<repository>
<id>scala-tools.org</id>
<name>Scala-Tools Maven2 Repository</name>
<url>http://scala-tools.org/repo-releases</url>
</repository>
</repositories>
<dependency>
<groupId>org.scalacheck</groupId>
<artifactId>scalacheck</artifactId>
<version>1.4</version>
</dependency>
ScalaCheck 1.3
Author: Rickard Nilsson (rickard.nilsson@telia.com)
ScalaCheck is a powerful tool for automatic unit testing of Scala and Java
programs. It features automatic test case generation and minimization of
failing test cases. ScalaCheck started out as a Scala port of the Haskell
library QuickCheck, and has since evolved and been extended with features not
found in Haskell QuickCheck.
The main features of ScalaCheck is:
* Unit properties are written directly in Scala, using combinators
from the ScalaCheck library.
* Properties are tested automatically, with test data generated by
ScalaCheck. Data generation can be precisely controlled, and generation
of custom data types is simple to define.
* Failing test cases are minimised automatically, which makes pin-pointing
error causes easier.
* Support for stateful testing of command sequences, and minimization of
failing command sequences.
This release of ScalaCheck introduces a number of minor fixes and improvements
since last release. The Commands API has been polished, it is now simpler to
define properties on stateful systems. The User Guide has been improved, and
examples on how to group properties with the Properties trait has been added.
Please see the change history on ScalaCheck's project site for more details on
the changes and additions in this release.
ScalaCheck availability:
* Project site:
http://code.google.com/p/scalacheck/
* Installation with sbaz:
sbaz update
sbaz install scalacheck
If you already have an earlier version of ScalaCheck installed, you
just need to run:
sbaz upgrade
* Binary JAR:
http://scalacheck.googlecode.com/files/ScalaCheck-1.3.jar
* Source JAR:
http://scalacheck.googlecode.com/files/ScalaCheck-1.3-src.jar
* Source repository:
http://scalacheck.googlecode.com/svn/
* Maven repository at scala-tools.org:
Add this to your pom.xml:
<repositories>
<repository>
<id>scala-tools.org</id>
<name>Scala-Tools Maven2 Repository</name>
<url>http://scala-tools.org/repo-releases</url>
</repository>
</repositories>
<dependency>
<groupId>org.scalacheck</groupId>
<artifactId>scalacheck</artifactId>
<version>1.3</version>
</dependency>
ScalaCheck 1.2
Author: Rickard Nilsson (rickard.nilsson@telia.com)
ScalaCheck is a Scala implementation of the QuickCheck 2 library for Haskell.
It tries to keep the look and feel of QuickCheck as much as possible, while
being open for improvements and extensions that can ease the task of
property-based, randomized testing of Scala programs.
The main features of ScalaCheck is:
* Unit properties are written directly in Scala, using combinators
from the ScalaCheck library.
* Properties are tested automatically, with test data generated by
ScalaCheck. Data generation can be precisely controlled, and generation
of custom data types is simple to define.
* Failing test cases are minimised automatically, which makes pin-pointing
error causes easier.
* Support for stateful testing of command sequences, and minimization of
failing command sequences.
This release of ScalaCheck is compatible with (and requires) Scala 2.7. It
introduces some additions, improvements and fixes since ScalaCheck 1.1.1. The
most notable feature addition is support for parallel test execution on systems
with multiple processor cores, by utilization of the Scala Actors library.
Due to improvements in Scala's type inferencer the Arbitrary mechanism has been
improved, and a Shrink trait has been added. In short, to define custom
Arbitrary and Shrink instances in ScalaCheck 1.2, use the following style:
implicit def arbOption[T](implicit a: Arbitrary[T]): Arbitrary[Option[T]] =
Arbitrary(Gen.oneOf(Gen.value(None), arbitrary[T].map(Some(_))))
implicit def shrinkOption[T](implicit s: Shrink[T]): Shrink[Option[T]] =
Shrink {
case None => Stream.empty
case Some(x) => shrink(x).map(Some(_))
}
See the user guide for detailed examples of implicit Arbitrary and Shrink
instances.
Please see the change history on ScalaCheck's project site for more details on
the changes and additions in this release.
ScalaCheck availability:
* Project site:
http://code.google.com/p/scalacheck/
* Installation with sbaz:
sbaz update
sbaz install scalacheck
If you already have an earlier version of ScalaCheck installed, you
just need to run:
sbaz upgrade
* Binary JAR:
http://scalacheck.googlecode.com/files/ScalaCheck-1.2.jar
* Source JAR:
http://scalacheck.googlecode.com/files/ScalaCheck-1.2-src.jar
* Source repository:
http://scalacheck.googlecode.com/svn/
* Maven repository at scala-tools.org:
Add this to your pom.xml:
<repositories>
<repository>
<id>scala-tools.org</id>
<name>Scala-Tools Maven2 Repository</name>
<url>http://scala-tools.org/repo-releases</url>
</repository>
</repositories>
<dependency>
<groupId>org.scalacheck</groupId>
<artifactId>scalacheck</artifactId>
<version>1.2</version>
</dependency>
ScalaCheck 1.1.1
Author: Rickard Nilsson (rickard.nilsson@telia.com)
ScalaCheck is a Scala implementation of the QuickCheck 2 library for Haskell.
It tries to keep the look and feel of QuickCheck as much as possible, while
being open for improvements and extensions that can ease the task of
property-based, randomized testing of Scala programs.
The main features of ScalaCheck is:
* Unit properties are written directly in Scala, using combinators
from the ScalaCheck library.
* Properties are tested automatically, with test data generated by
ScalaCheck. Data generation can be precisely controlled, and generation
of custom data types is simple to define.
* Failing test cases are minimised automatically, which makes pin-pointing
error causes easier.
* Support for stateful testing of command sequences, and minimization of
failing command sequences.
This release introduce no changes at all since ScalaCheck 1.1, it is just a
rebuild of the library using Scala 2.6.1, since ScalaCheck 1.1 proved to be
binary incompatible with Scala 2.6.1. Please upgrade to ScalaCheck 1.1.1 if you
are using Scala 2.6.1. For more information on what was introduced in
ScalaCheck 1.1, see the previous release notes below.
ScalaCheck availability:
* Direct installation with sbaz:
sbaz update
sbaz install scalacheck
If you already have an earlier version of ScalaCheck installed, you
just need to run:
sbaz upgrade
* Binary JAR:
http://scalacheck.googlecode.com/files/ScalaCheck-1.1.1.jar
* Source JAR:
http://scalacheck.googlecode.com/files/ScalaCheck-1.1.1-src.jar
* Source repository:
http://scalacheck.googlecode.com/svn/
* Maven repository at scala-tools.org:
Add this to your pom.xml:
<repositories>
<repository>
<id>scala-tools.org</id>
<name>Scala-Tools Maven2 Repository</name>
<url>http://scala-tools.org/repo-releases</url>
</repository>
</repositories>
<dependency>
<groupId>org.scalacheck</groupId>
<artifactId>scalacheck</artifactId>
<version>1.1.1</version>
</dependency>
ScalaCheck 1.1
Author: Rickard Nilsson (rickard.nilsson@telia.com)
ScalaCheck is a Scala implementation of the QuickCheck 2 library for Haskell.
It tries to keep the look and feel of QuickCheck as much as possible, while
being open for improvements and extensions that can ease the task of
property-based, randomized testing of Scala programs.
The main features of ScalaCheck is:
* Unit properties are written directly in Scala, using combinators
from the ScalaCheck library.
* Properties are tested automatically, with test data generated by
ScalaCheck. Data generation can be precisely controlled, and generation
of custom data types is simple to define.
* Failing test cases are minimised automatically, which makes pin-pointing
error causes easier.
* Support for stateful testing of command sequences, and minimization of
failing command sequences.
This release introduces minor functionality improvements, some new helper
methods and arbitrary generators for some new types. It also has (experimental)
support for stateful command sequence testing (in a state machine fashion à la
Erlang QuickCheck), with the new trait scalacheck.Commands. Please see the last
section of the User Guide for more information on this library. Also remember
that the library interface probably will change in future releases.
The sbaz package has been improved in this release, with sources and api
documentation added.
NOTE: The ScalaCheck root package has been CHANGED from just 'scalacheck' to
'org.scalacheck'. The trait Testable has been renamed to Properties.
From now on, ScalaCheck will also be available in the Maven repository at
scala-tools.org. See further details below.
For more info, user guide, change history, etc, see the project site at:
http://code.google.com/p/scalacheck
ScalaCheck availability:
* Direct installation with sbaz:
sbaz update
sbaz install scalacheck
If you already have an earlier version of ScalaCheck installed, you
just need to run:
sbaz upgrade
* Binary JAR:
http://scalacheck.googlecode.com/files/ScalaCheck-1.1.jar
* Source JAR:
http://scalacheck.googlecode.com/files/ScalaCheck-1.1-src.jar
* Source repository:
http://scalacheck.googlecode.com/svn/
* Maven repository at scala-tools.org:
Add this to your pom.xml:
<repositories>
<repository>
<id>scala-tools.org</id>
<name>Scala-Tools Maven2 Repository</name>
<url>http://scala-tools.org/repo-releases</url>
</repository>
</repositories>
<dependency>
<groupId>org.scalacheck</groupId>
<artifactId>scalacheck</artifactId>
<version>1.1</version>
</dependency>
ScalaCheck 1.0
ScalaCheck is a Scala implementation of the QuickCheck 2 library for Haskell.
It tries to keep the look and feel of QuickCheck as much as possible, while
being open for improvements and extensions that can ease the task of
property-based, randomized testing of Scala programs.
The main features of ScalaCheck is:
* Unit properties are written directly in Scala, using combinators
from the ScalaCheck library.
* Properties are tested automatically, with test data generated by
ScalaCheck. Data generation can be precisely controlled, and generation
of custom data types is simple to define.
* Failing test cases are minimised automatically, which makes pin-pointing
error causes easier.
This release does not add any major new functionality since the 1.0-RC1 release,
but some bugs have been fixed and the code has been cleaned up a bit. Also,
this release depends on Scala 2.6.0, since it uses some of its new features.
For more info, user guide, change history, etc, see the project site at:
http://code.google.com/p/scalacheck
Downloading ScalaCheck:
* Direct install with sbaz:
sbaz update
sbaz install scalacheck
* If you already have an earlier version of ScalaCheck installed, you
just need to run:
sbaz upgrade
* http://scalacheck.googlecode.com/files/ScalaCheck-1.0-RC1.jar
* Source repository:
http://scalacheck.googlecode.com/svn/
ScalaCheck 1.0-RC1