On Wed, Jun 08, 2011 at 04:30:56PM +0200, Klaus Kaempf wrote:
* Josef Reidinger <jreidinger@suse.cz> [Jun 08. 2011 16:28]:
- Fix|Easy: Develop code in reusable libraries and write simple and understandable tests.
write simple and understandable tests for ycp is not easy task ;)
How about using testing frameworks available in Perl, Python, Ruby and test the YCP code via the respective bindings ?
That makes sense.
Of course, this still requires testable code in the first place ...
That is the hard part. - One thing is (re)writing the code so that mocking and stubbing is possible, - another thing is that it may be necessary to enhance the YCP runtime to allow mocking and stubbing at all - at the moment we can only mock SCR via ag_dummy. -- Martin Vidner, YaST developer http://en.opensuse.org/User:Mvidner Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu