def run(self): # Evita que as dependências sejam instaladas em um diretório ".egg/" # durante os testes, o que é útil se você estiver depurando usando # virtualenv e quer que sejam utilizadas as dependências já disponíveis # no ambiente virtual. self.distribution.install_requires = [] TestCommand.run(self)
def run(self): test.run(self) import nose import logging logging.disable(logging.CRITICAL) nose.main(argv=['tests', '-v'])
def run(self): entry_points = os.path.join('distribute.egg-info', 'entry_points.txt') if not os.path.exists(entry_points): try: _test.run(self) finally: return f = open(entry_points) # running the test try: ep_content = f.read() finally: f.close() try: _test.run(self) finally: # restoring the file f = open(entry_points, 'w') try: f.write(ep_content) finally: f.close()
def run(self): for dep in self.distribution.install_requires + self.distribution.tests_require: install_cmd = "pip install {} --disable-pip-version-check --no-cache-dir".format(dep) if self.pip_args is not None: install_cmd += ' ' + self.pip_args os.system(install_cmd) TestCommand.run(self)
def run(self): test.run(self) import pytest cov = '' if self.pytest_cov is not None: outputs = ' '.join('--cov-report %s' % output for output in self.pytest_cov.split(',')) cov = ' --cov openhtf ' + outputs sys.exit(pytest.main(self.pytest_args + cov))
def run(self): # Call this to do complicated distribute stuff. original_test.run(self) for cmd in ['nosetests']: try: self.run_command(cmd) except SystemExit, e: if e.code: raise
def run(self): if '-n' in sys.argv or '--dry-run' in sys.argv: # I can't believe self._dry_run exists but does not get set. if self.distribution.install_requires: self.check_build_eggs(self.distribution.install_requires) if self.distribution.tests_require: self.check_build_eggs(self.distribution.tests_require) self.run_tests() else: test_py.run(self)
def run(self): if options.cpptests: optimize = "Dbg" comp_cmd = ["scons", "--optimize={0}".format(optimize), "--target=Tests", "-j{0}".format(jobs)] print("initializing NetworKit compilation with: {0}".format(" ".join(comp_cmd))) if not subprocess.call(comp_cmd) == 0: print("scons returned an error, exiting setup.py") exit(1) run_cpp_cmd = ["./NetworKit-Tests-{0}".format(optimize),"-t"] if subprocess.call(run_cpp_cmd) == 0: print("C++ unit tests didn't report any errors") else: print("some C++ unit tests failed, see above") TestCommand.run(self)
def run(self): if self.verbosity > 0: # ensure that deprecation warnings are displayed during testing # the following state is assumed: # logging.capturewarnings is true # a "default" level warnings filter has been added for # DeprecationWarning. See django.conf.LazySettings._configure_logging logger = logging.getLogger('py.warnings') handler = logging.StreamHandler() logger.addHandler(handler) TestCommand.run(self) if self.verbosity > 0: # remove the testing-specific handler logger.removeHandler(handler)
def run(self): if sys.platform == 'darwin': # Docker for Mac exports certain paths into the virtual machine # actually running Docker. The default tempdir isn't one of them, # but /tmp is. os.environ['TMPDIR'] = '/tmp' return TestCommand.run(self)
def run(self): # So SQLite db won't be destroyed os.environ['REUSE_DB'] = "1" settings.configure(BASE_DIR=django_settings.BASE_DIR, TEST_RUNNER=django_settings.TEST_RUNNER, DEBUG=django_settings.DEBUG, INSTALLED_APPS=django_settings.INSTALLED_APPS, DATABASES=django_settings.DATABASES, LOGGING=django_settings.LOGGING) django.setup() #from django.core.management import call_command #call_command('makemigrations', 'tests') #call_command('migrate') #call_command('shell') test.run(self)
def run(self): entry_points = os.path.join('setuptools.egg-info', 'entry_points.txt') if not os.path.exists(entry_points): _test.run(self) return # even though _test.run will raise SystemExit # save the content with open(entry_points) as f: ep_content = f.read() # run the test try: _test.run(self) finally: # restore the file with open(entry_points, 'w') as f: f.write(ep_content)
def run(self): # Install dependencies if self.distribution.install_requires: self.distribution.fetch_build_eggs( self.distribution.install_requires) if self.distribution.tests_require: self.distribution.fetch_build_eggs(self.distribution.tests_require) # Use the flake8 setup.py command (declared via entry_points in flake8's setup.py) self.run_command("flake8") # Run the unittests as normal return test_cmd.run(self) # Can't use super() since test_cmd is an old-style class...
def run(self): # Make sure all modules are ready build_cmd = self.get_finalized_command("build_py") build_cmd.run() # And make sure our scripts are ready build_scripts_cmd = self.get_finalized_command("build_scripts") build_scripts_cmd.run() # make symlinks for test data if build_cmd.build_lib != top_dir: for path in ['testfiles.tar.gz', 'gnupg']: src = os.path.join(top_dir, 'testing', path) target = os.path.join(build_cmd.build_lib, 'testing', path) try: os.symlink(src, target) except Exception: pass os.environ['PATH'] = "%s:%s" % (os.path.abspath( build_scripts_cmd.build_dir), os.environ.get('PATH')) test.run(self)
def run(self): # Install dependencies if self.distribution.install_requires: self.distribution.fetch_build_eggs( self.distribution.install_requires) if self.distribution.tests_require: self.distribution.fetch_build_eggs(self.distribution.tests_require) # Use the flake8 setup.py command (declared via entry_points in flake8's setup.py) self.run_command("flake8") # Run the unittests as normal return test_cmd.run( self) # Can't use super() since test_cmd is an old-style class...
def run(self): # Make sure all modules are ready build_cmd = self.get_finalized_command("build_py") build_cmd.run() # And make sure our scripts are ready build_scripts_cmd = self.get_finalized_command("build_scripts") build_scripts_cmd.run() # make symlinks for test data if build_cmd.build_lib != top_dir: for path in ['testfiles.tar.gz', 'gnupg']: src = os.path.join(top_dir, 'testing', path) target = os.path.join(build_cmd.build_lib, 'testing', path) try: os.symlink(src, target) except Exception: pass os.environ['PATH'] = "%s:%s" % ( os.path.abspath(build_scripts_cmd.build_dir), os.environ.get('PATH')) test.run(self)
def run(self): entry_points = os.path.join('setuptools.egg-info', 'entry_points.txt') if not os.path.exists(entry_points): _test.run(self) return # even though _test.run will raise SystemExit f = open(entry_points) # running the test try: ep_content = f.read() finally: f.close() try: _test.run(self) finally: # restoring the file f = open(entry_points, 'w') try: f.write(ep_content) finally: f.close()
def run(self): VaaSEggInfo.active = False test.run(self)
def run(self): delete_base_file() management.call_command('syncdb', interactive=False) #management.call_command('loaddata', 'fixtures.json', interactive=False) test.run(self)
def run(self): with self._save_entry_points(): _test.run(self)
def run(self): build_library() test.run(self)
def run(self): # Only useful for Python 2 right now. if sys.version_info[0] < 3: self.spawn(['./run-pychecker']) test.run(self)
def run(self): # Avoid installing dependencies in a ".egg/" directory during tests # execution, which is useful if you are running in a virtualenv and # want to use dependencies already installed in your environment. self.distribution.install_requires = [] TestCommand.run(self)
def run(self): self.run_command('build_py') _test.run(self)
def run(self): subprocess.check_call(['pytest']) test.run(self)
def run(self, *args, **kwargs): for env_name, env_value in self.extra_env.items(): os.environ[env_name] = str(env_value) test.run(self, *args, **kwargs)
def run(self): import csslex, cssyacc csslex._build() cssyacc._build() test.run(self)
def run(self): compile_OpenMP_library() test.run(self)
def run(self): logging.basicConfig(level=logging.WARNING) if self.tests_base: import tools.oci_test_case tools.oci_test_case.OciTestCase._set_base(self.tests_base) TestCommand.run(self)
def run(self): TestCommand.run(self)
def run(self): SetuptoolsTestCommand.run(self) self.with_project_on_sys_path(self.run_tests)
def run(self, *args, **kwargs): for env_name, env_value in self.extra_env.items(): os.environ[env_name] = str(env_value) TestCommand.run(self, *args, **kwargs)
def run(self, *args, **kwargs): Upgrade().run(dist=True) test.run(self, *args, **kwargs)
def run(self): self.run_command('build') self.run_command('maven') test.run(self)
def run(self): install_requirements() test.run(self)
def run(self): _build_backend(_root_dir) _test_backend(_root_dir) test.run(self)
def run(self): test.run(self) self.with_project_on_sys_path(self.run_benchmark)
def run(self): self.run_command("build_py") _test.run(self)
def run(self): ''' Overrides setuptools.command.test.test.run to perform a complete build ''' self.get_finalized_command("build").run() test.run(self)
def run(self): self.pep8_report() TestCommand.run(self)
def run(self): test.run(self)