Exemplo n.º 1
0
 def setUpClass(cls):
     run_common.prepare(clone_templates=True, install_ng_cli=False)
     TnsRunTest.setUpClass()
     Tns.create(app_name=APP_NAME, template=Template.HELLO_WORLD_JS.local_package, update=True)
     Tns.platform_add_android(app_name=APP_NAME, framework_path=Settings.Android.FRAMEWORK_PATH)
     if Settings.HOST_OS is OSType.OSX:
         Tns.platform_add_ios(app_name=APP_NAME, framework_path=Settings.IOS.FRAMEWORK_PATH)
import sys

import nose

import run_common
from core.log.log import Log

if __name__ == '__main__':
    run_common.prepare(clone_templates=False, install_ng_cli=True)
    Log.info("Running tests...")
    arguments = ['nosetests', '-v', '-s', '--nologcapture', '--logging-filter=nose', '--with-xunit', '--with-flaky']
    for i in sys.argv:
        arguments.append(str(i))
    nose.run(argv=arguments)
import sys

import nose

import run_common
from core.log.log import Log

if __name__ == '__main__':
    run_common.prepare(clone_templates=False,
                       install_ng_cli=False,
                       get_preivew_packages=True)
    Log.info("Running tests...")
    arguments = [
        'nosetests', '-v', '-s', '--nologcapture', '--logging-filter=nose',
        '--with-xunit', '--with-flaky'
    ]
    for i in sys.argv:
        if "samples=" not in i:
            arguments.append(str(i))
    nose.run(argv=arguments)