You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/04/28 09:01:06 UTC

[jira] [Commented] (CLOUDSTACK-8394) Skip test cases through setUp() instead of setUpClass()

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-8394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14516546#comment-14516546 ] 

ASF GitHub Bot commented on CLOUDSTACK-8394:
--------------------------------------------

GitHub user gauravaradhye opened a pull request:

    https://github.com/apache/cloudstack/pull/203

    CLOUDSTACK-8394: Skip test cases through setUp() instead of setUpClass()

    When the tests are skipped through setUpClass, the statement "raise unittest.SkipTest()" is used. This is seen as exception in the logs. To avoid this, alternatively we can set class level variable in setUpClass and read this variable value in setUp() and skip the test case.
    
    All test cases are run and tested.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/gauravaradhye/cloudstack 8394

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cloudstack/pull/203.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #203
    
----
commit cc52d395727be657c9b96a8c9dca10f3b051ee70
Author: Gaurav Aradhye <ga...@clogeny.com>
Date:   2015-04-28T06:55:23Z

    CLOUDSTACK-8394: Skip test cases through setUp() instead of setUpClass()

----


> Skip test cases through setUp() instead of setUpClass()
> -------------------------------------------------------
>
>                 Key: CLOUDSTACK-8394
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8394
>             Project: CloudStack
>          Issue Type: Test
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Automation
>    Affects Versions: Future
>            Reporter: Gaurav Aradhye
>            Assignee: Gaurav Aradhye
>              Labels: automation
>             Fix For: Future
>
>
> When the tests are skipped through setUpClass, the statement "raise unittest.SkipTest()" is used. This is seen as exception in the logs. To avoid this, alternatively we can set class level variable in setUpClass and read this variable value in setUp() and skip the test case.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)