EntropySink

Technical & Scientific => Programming => Topic started by: hans on September 19, 2013, 10:50:50 AM

Title: Testing for you PHP folk
Post by: hans on September 19, 2013, 10:50:50 AM
https://github.com/zavg/Asis

I saw a HN article on this today and thought it looked interesting. If I'm reading it right (and it was quick because I don't do PHP anymore), the general concept is it logs calls and makes tests out of them so you can include them if you don't have tests for legacy code. Of course they might be wrong but at least they should be consistent with what you currently have.

I might need to look into something like that in the Java world. Should be pretty easy to do something similar to monitor method calls and generate input/output checks.