3 ms·
The nice thing about metamorphic testing is that it seems easy to implement. You don't need a complex testing framework, like Quickcheck. Just alter the input
by scribu 7y ago
The nice thing about metamorphic testing is that it seems easy to implement. You don't need a complex testing framework, like Quickcheck.
Just alter the input in some fairly simple ways and check the output.
- winkelwagen 7y agoBut then we are back at example/oracle based testing, the beauty of this and pbt is the fact that no matter the input, it should always be what you expected. I did have hard time follow the audio example, he references a paper about api testing (didn’t have the time to read the whole thing) but the examples there are quite good. for example: Doing a query requesting YouTube video’s but with location personalization. A query of New York center with a 50km range, should always be equal or less then the same query with a 25km/15/5 range. This would be true for every search query. That said, I we still having a hard time using PBT, and metamorphic testing seems like a subset of it. It will take a while before the industry gets there.
- scribu 7y agoYes, sorry, I meant checking that the output didn't change (instead of checking that it had a specific value).