def main(): if not nose.run(defaultTest='mzb_local_tests'): raise RuntimeError("some tests failed") with start_mzbench_server(): if not nose.run(defaultTest=['mzb_basic_tests', 'mzb_signal_tests', 'mzb_negative_tests']): raise RuntimeError("some tests failed")
def main(): from nose.plugins.multiprocess import MultiProcess with start_mzbench_server(): if not nose.run(defaultTest=[ __name__, 'mzb_signal_tests', 'mzb_negative_tests' ], addplugins=[MultiProcess()]): raise RuntimeError("some tests failed")
def check_migrations_test(): mzbench_data_dir = tempfile.mkdtemp(prefix='mzbench_data_') with start_mzbench_server(custom_data_location=mzbench_data_dir): for i in range(5): run_successful_bench(scripts_dir + 'correct_script.erl') try: cmd(mzbench_dir + '/bin/migrate.py ' + mzbench_data_dir) finally: shutil.rmtree(mzbench_data_dir)
def main(): from nose.plugins.multiprocess import MultiProcess with start_mzbench_server(): if not nose.run(defaultTest=[__name__, 'mzb_signal_tests', 'mzb_negative_tests'], addplugins=[MultiProcess()]): raise RuntimeError("some tests failed")
def main(): with start_mzbench_server(): if not nose.run(defaultTest=__name__): raise RuntimeError("some tests failed")