glados 1.1.7
glados: ^1.1.7 copied to clipboard
A simple testing framework that tries to break your properties.
1.1.7 #
- Update dependencies and remove unneeded ones.
- Add CI.
- Thanks to @greyhairredbear and @tjarvstrand!
1.1.6 #
- Fix passing
exploretoGlados2andGlados3. - Update dependencies.
- Thanks to @MSCL!
1.1.5 #
- Fix the generation of
any.bigIntInRange. - Update licenses to MIT.
- Thanks to @Kharacternyk and @andreilg!
1.1.4 #
- Fix the shrinking of
doubles. - Update dependencies.
- Thanks to @andreilg and @jibbers42!
1.1.3 #
- Update dependencies.
- Thanks to @juliano!
1.1.2 #
- Update dependencies.
- Thanks to @MikkelStorgaard!
1.1.1 #
- Format internal
rich_type.dartfile correctly. - Update readme to be more contributor-friendly.
- Thanks to @MikkelStorgaard!
1.1.0 #
- Add
Generator.bind. - Add
any.oneOfgenerator. - Make
any.eitheraccept up to ten generators. - Thanks to @MikkelStorgaard!
1.0.3 #
- Fix typos in the readme file.
- Fix bug in
any.choose. - Thanks to @t1ooo!
1.0.2 #
- Update dependencies.
- Thanks to @t1ooo!
1.0.1 #
- Document all generators.
- Add
any.positiveDoubleandany.negativeDoubleOrZero. - Fix off-by-one-errors in
int8,int16,int32.
1.0.0 #
- The API is now stable!
- Migrate to null-safety.
- Fix many typos in the readme.
- Fix many typos in this changelog.
- Rename
any.lettertoany.letters,any.uppercaseLettertoany.uppercaseLetters,any.lowercaseLettertoany.lowercaseLetters, andany.digittoany.digits. - Add
any.nonEmptyStringOf,any.nonEmptyLetters,any.nonEmptyUppercaseLetters,any.nonEmptyLowercaseLetters, andany.nonEmptyDigits. - Remove
any.uint64because integers are always int64. - Fixed bug when attempting to generate ints larger than 2^32.
- Directly export 'package:test/test.dart', so that you don't have to do so manually.
0.4.0 #
- Support
asynctests. Exploreis nowExploreConfig.- You can now use all parameters accepted by the standard
testfunction (to set timeouts, configure which platform the test runs on, etc.). Glados forwards those parameters. - Your tests can depend on a
Random! Just usetestWithRandom. - Rename invariant to property to align with the terminology usually used in property-based testing frameworks.
- Make
PropertyTestNotDeterministicerror more helpful. - Glados itself is now (partially) tested.
0.3.4 #
- Make pattern images more readable.
- Fix minor errors in the readme.
0.3.3 #
- Add a section about how to find properties.
0.3.2 #
- Fix more analysis warnings.
0.3.1 #
- Fix analysis warnings.
0.3.0 #
- Make the
NoGeneratorFounderror even more helpful by suggesting packages. - Make the
InvariantNotDeterministicerror more helpful. - Remove the code generator because higher-level primitives make writing generators just a few lines of code.
- Fix analysis warnings.
0.2.2 #
- Make
NoGeneratorFounderror much more helpful. - Fix analysis warnings.
0.2.1 #
- Update readme.
0.2.0 #
- Make architecture more flexible: Split arbitraries into
Generators andShrinkables. - Add generators:
- Meta generators:
simple,always,choose,either,combine2,combine3,combine4,combine5,combine6,combine7,combine8,combine9,combine10 intgenerators:intInRange,positiveInt,positiveIntOrZero,negativeInt,negativeIntOrZero,uint8,uint16,uint32,uint64,int8,int16,int32,int64doublegenerators:doubleInRange,positiveDoubleOrZero,negativeDoublenumgenerator:numInRangeBigIntgenerator:bigIntInRangeListgenerators:listWithLengthInRange,listWithLengthSetgenerators:setWithLengthInRange,setWithLength,nonEmptySetDateTimegenerators:dateTimeBeforeEpoch,dateTimeAfterEpochDurationgenerators:positiveDuration,negativeDurationStringgenerators:letterOrDigit
- Meta generators:
- Improve shrinking for
doublegenerators: They now shrink the decimal digits before their value (e.g.,2.2is considered less complex than2.1008). - Improve the code generator:
- It uses the new meta generators to generate more concise code.
- It provides a much better error experience.
- Make the readme more concise.
- Make the package more lightweight by moving the sticker image to a separate location and removing the git files.
0.1.6 #
- Add quickstart section to readme.
- Fix errors in the readme.
- Remove several unused files.
0.1.5 #
- Improve readme.
- Fix code generator for classes.
- Fix analysis errors.
0.1.4 #
- Add code generator.
- Add arbitrary:
stringOf. - Flesh out the example.
- Fix analysis error.
0.1.3 #
- Move sticker to the top.
- Minor readme improvements.
0.1.2 #
- Improve readme.
- Fix the sticker URL.
0.1.1 #
- Improve readme, including adding a Glados sticker at the top.
- Add arbitraries:
nonEmptyList,positiveInt,positiveIntOrZero,negativeInt,negativeIntOrZero
0.1.0 #
- Redesign API: Syntax is now
Glados<...>().test(...). Theanyprovides a namespace for allArbitrarys. - Improve readme and describe customization options.
- Improve console output.
- Add arbitraries:
lowercaseLetter,uppercaseLetter,letter,digit - Make errors more helpful by providing a call to action.
0.0.4 #
- Improve readme.
- Add arbitraries:
null,bool,int,double,num,bigInt,dateTime,duration,set,list,mapEntry,map - Improve errors.
0.0.3 #
- Improve readme.
- Improve doc comments.
0.0.2 #
- Add
glados2andglados3for testing with multiple input parameters. - Improve readme.
- Improve console output.
- Add doc comments.
0.0.1 #
- Initial release.