You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Patrice Collardez (JIRA)" <ji...@apache.org> on 2010/11/17 09:33:16 UTC

[jira] Created: (CMIS-271) Use a regular test framework

Use a regular test framework
----------------------------

                 Key: CMIS-271
                 URL: https://issues.apache.org/jira/browse/CMIS-271
             Project: Chemistry
          Issue Type: Improvement
          Components: cmis-phplib
            Reporter: Patrice Collardez


Use a test framework like PHPUnit or equivalent that we may use with Hudson.
Note: PHPUnit is a PEAR framework and has some dependencies. Provide documentation or links on how to install and use it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CMIS-271) Use a regular test framework

Posted by "Richard McKnight (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CMIS-271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12985141#action_12985141 ] 

Richard McKnight commented on CMIS-271:
---------------------------------------

I agree that we should use a testing framework

+1 on factoring out the REST client into its own interface and implementing class
I also think that this would allow for some flexibility in supporting different authentication schemes 

> Use a regular test framework
> ----------------------------
>
>                 Key: CMIS-271
>                 URL: https://issues.apache.org/jira/browse/CMIS-271
>             Project: Chemistry
>          Issue Type: Improvement
>          Components: cmis-phplib
>            Reporter: Patrice Collardez
>
> Use a test framework like PHPUnit or equivalent that we may use with Hudson.
> Note: PHPUnit is a PEAR framework and has some dependencies. Provide documentation or links on how to install and use it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CMIS-271) Use a regular test framework

Posted by "Stefan Topfstedt (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CMIS-271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12965838#action_12965838 ] 

Stefan Topfstedt commented on CMIS-271:
---------------------------------------

IMO one prerequisite of this would be to re-factor the REST client interface and functionality (doGet(), doPost() etc.) out into its own interface and implementing classes.
(the default implementation would be the current, cURL-based one).
This would open up the door for mocking-up the repository via a "test" implementation of  REST client interface that can be configured to serve up canned responses instead of interacting with a real CMIS-enabled repo.
I'd be willing to throw some time at this, pls. let me know if there is any interest in this.

+1 for using PHPUnit btw.

> Use a regular test framework
> ----------------------------
>
>                 Key: CMIS-271
>                 URL: https://issues.apache.org/jira/browse/CMIS-271
>             Project: Chemistry
>          Issue Type: Improvement
>          Components: cmis-phplib
>            Reporter: Patrice Collardez
>
> Use a test framework like PHPUnit or equivalent that we may use with Hudson.
> Note: PHPUnit is a PEAR framework and has some dependencies. Provide documentation or links on how to install and use it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.