Re: [Freeipa-devel] QUnit and unit testing

2010-09-13 Thread Adam Young
On 09/13/2010 02:44 PM, Endi Sukma Dewata wrote: - "Adam Young" wrote: IPA class: - IPA(path, type): Construct IPA object given a path to server's JSON-RPC or static files. - success(): Default success handler. - error(): Default error handler. - failure(): Default f

Re: [Freeipa-devel] QUnit and unit testing

2010-09-13 Thread Endi Sukma Dewata
- "Endi Sukma Dewata" wrote: > var addCmd = ipa.createCommand("user-add"); The createCommand() could be implemented like this: ipa.createCommand = function(method) { return new IPACommand(this, method); } The QUnit test could be implemented like this: test("test01", function() { var i

Re: [Freeipa-devel] QUnit and unit testing

2010-09-13 Thread Endi Sukma Dewata
- "Adam Young" wrote: > > IPA class: > > - IPA(path, type): Construct IPA object given a path to server's JSON-RPC or > >static files. > > - success(): Default success handler. > > - error(): Default error handler. > > - failure(): Default failure handler. > > - execute(met

Re: [Freeipa-devel] QUnit and unit testing

2010-09-13 Thread Adam Young
On 09/13/2010 12:51 PM, Endi Sukma Dewata wrote: - "Adam Young" wrote: I've started playing around with QUnit. I think it is the right too for Unit testing in q JQuery based application. One thing that has become clear pretty quickly is that most of our code is dependant upon ipa_cmd

Re: [Freeipa-devel] QUnit and unit testing

2010-09-13 Thread Endi Sukma Dewata
- "Adam Young" wrote: > I've started playing around with QUnit. I think it is the right too > for Unit testing in q JQuery based application. > > One thing that has become clear pretty quickly is that most of our > code is dependant upon ipa_cmd. We are going to need to have a more > flexi

[Freeipa-devel] QUnit and unit testing

2010-09-13 Thread Adam Young
I've started playing around with QUnit. I think it is the right too for Unit testing in q JQuery based application. One thing that has become clear pretty quickly is that most of our code is dependant upon ipa_cmd. We are going to need to have a more flexible scheme for specifying whether we