filfreire / anagram

Two string checker for anagrams (with hardcore static analysis)
MIT License
3 stars 0 forks source link

Idea: add property-based testing #5

Open SharplEr opened 6 years ago

SharplEr commented 6 years ago

Property-based testing is a powerful approach for testing. It came from Haskell community (original lib called QuickCheck), but there are analogs for other languages. The main idea to generate input data by random and trying to break guarantees which you think your code provides. I don't use any property-based test lib for Java, so I can't say which is the best one. I know there is ScalaCheck for Scala. And this for Rust (by the way very good documentation).

I think you can add some property-based testing framework in your project. What do you think?

filfreire commented 6 years ago

@SharplEr seems like a good idea, I need to search a proper framework to try it out.

filfreire commented 6 years ago

@SharplEr my friend @ordepdev recommended these:

junit-quickcheck plus, also check https://www.youtube.com/watch?v=5pwv3cuo3Qk

I think we can start from here!

ordepdev commented 6 years ago

Property-based testing rocks 🚀👍