Mailinglist Archive: yast-devel (121 mails)
| < Previous | Next > |
Re: [yast-devel] Changing the Attitude to Coding YaST: Testing
- From: Martin Vidner <mvidner@xxxxxxx>
- Date: Wed, 8 Jun 2011 17:23:55 +0200
- Message-id: <20110608152355.GA8778@trikolka.suse.cz>
On Wed, Jun 08, 2011 at 04:30:56PM +0200, Klaus Kaempf wrote:
That makes sense.
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
* 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 > |