3 ms·
Another approach to automated generation of test cases is through a process of turning traces into tests. Valid uses of code already exist. These are in the app
by lootsauce 8y ago
Another approach to automated generation of test cases is through a process of turning traces into tests. Valid uses of code already exist. These are in the application itself and for a library you can find published code that makes use of it.
A recent paper [1] covers this subject and demonstrates in R achieving better code coverage than hand written tests and does so for a large portion of published libraries.
I think this is a very interesting direction for automated test case generation. If you look at snapshot testing [2] it reminds me very much of that.
[1] http://janvitek.org/pubs/issta18.pdf http://janvitek.org/pubs/issta18.pdf
[2] https://blog.kentcdodds.com/effective-snapshot-testing-e0d1a2c28eca https://blog.kentcdodds.com/effective-snapshot-testing-e0d1a...