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

ASF subversion and git services commented on CLOUDSTACK-8394:
-------------------------------------------------------------

Commit 9a58794a04f8f94c5b04b93b39e5544eb75b5a8e in cloudstack's branch 
refs/heads/master from [~gauravaradhye]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=9a58794 ]

CLOUDSTACK-8394: Use custom decorator to skip test case

Signed-off-by: Gaurav Aradhye <[email protected]>
This closes #190


> Use decorators to skip test case depending on class variables set in 
> 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 a custom decorator. Decorator will skip or run test 
> cases accordingly.



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

Reply via email to