Mailinglist Archive: yast-devel (121 mails)

< Previous Next >
Re: [yast-devel] Changing the Attitude to Coding YaST: Testing
On Wed, Jun 08, 2011 at 04:30:56PM +0200, Klaus Kaempf wrote:
* Josef Reidinger <jreidinger@xxxxxxx> [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
< Previous Next >