Skip to content

huangrui127/noserunner

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

noserunner 0.0.1

runner based on python nose testing framework

Dependency

sudo pip install nose

Help

$ cd noserunner
$ python runtests.py -h

Command-line

python runtests.py [-h|--help] [--cycle CYCLE] [--reportserver]

Process the paramters of runtests
optional arguments:
  -h, --help            Show this help message and exit

  --cycle CYCLE         Set the number(int) of cycle. Execute test with a specified number of cycle. Default is 1

  --reportserver        Enable the report server feature. Default is disable

TestCaseContext instance provided by nose plugin

test case extends from unittest.TestCase is able to get TestCaseContext obj during nose run time.
 
"""
def testMethod(self):
    ctx = self.contexts 
    user_log_dir_path = ctx.user_log_dir
    
"""

Demo

├── client.py                                       #nose plugin module
├── planloader.py                                   #nose plugin module
├── reporter.py                                     #nose plugin module
├── runtests.py                                     #launch script
├── scripts                                         #test case package
│   ├── __init__.py
│   ├── pics                                        #test case related sources
│   │   ├── browser.BrowserTest.testOpenBrowser
│   │   │   ├── baidu_logo.png
│   │   │   └── baidu_logo.(x267y267w554h206).png
│   │   └── phone.PhoneTest.testCall
│   └── testcases                                   #unittest test case package
│       ├── __init__.py 
│       ├── browser.py                              #test case for browser
│       ├── phone.py                                #test case for phone
└── server.config                                   #config file (server, account, device...)
├── plan                                            #test case plan

About

runner based on python nose testing framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.7%
  • JavaScript 0.3%