Metadata-Version: 2.1
Name: testfilter
Version: 0.0.1
Summary: unittest 用例执行过滤， 可选择用例级别或用例标志进行过滤
Home-page: https://github.com/mocobk/testfilter
Author: mocobk
Author-email: mocobk@163.com
License: UNKNOWN
Description: # testfilter
        unittest 用例执行过滤， 可选择用例级别或用例标志进行过滤
        
        ### 如何使用它?
        
        ```shell
        >>> pip install testfilter
        ```
        
        
        ```python
        
        import unittest
        from testfilter import *
        
        Level.set_run_level(Level.P2)
        Tag.set_run_tag(Tag.TEST)
        
        
        class Demo(unittest.TestCase, metaclass=Meta):
            @tag(Tag.UAT, Tag.PROD)
            def test_001(self):
                self.assertEqual(1, 1)
        
            @tag(Tag.TEST)
            @level(Level.P2)
            def test_002(self):
                self.assertEqual(1, 1)
        
            @level(Level.P1)
            def test_003(self):
                self.assertEqual(1, 1)
        
            @level(Level.P3)
            def test_004(self):
                self.assertEqual(1, 1)
        
        
        if __name__ == '__main__':
        
            unittest.main()
        
        ```
        ![image](http://mocobk.test.upcdn.net/image/2019-04-14-112321.jpg)
        
        ### 用例Tag
        
        | Tag |  英文 | 中文 |
        |:----|:------|:-----|
        |DEV|Development|开发|
        |TEST|Testing|测试|
        |UAT|User Acceptance Test|用户验收测试|
        |SIM|Simulation|高仿|
        |PROD|Production|正式/生产|
        
        
        ### 用例级别
        **Level:** 
        
        |`SMOKE/P1`|`P2`|`P3`|`P4`|
        |----|----|----|-----|
        
        [用例级别参考](https://www.jianshu.com/p/4903856cd6c5)
        
        
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
