| 39 | |
| 40 | |
| 41 | def ParseArguments(): |
| 42 | parser = argparse.ArgumentParser() |
| 43 | parser.add_argument( '--skip-build', action = 'store_true', |
| 44 | help = 'Do not build ycmd before testing' ) |
| 45 | parser.add_argument( '--coverage', action = 'store_true', |
| 46 | help = 'Enable coverage report' ) |
| 47 | parser.add_argument( '--no-flake8', action = 'store_true', |
| 48 | help = 'Do not run flake8' ) |
| 49 | parser.add_argument( '--dump-path', action = 'store_true', |
| 50 | help = 'Dump the PYTHONPATH required to run tests ' |
| 51 | 'manually, then exit.' ) |
| 52 | |
| 53 | parsed_args, unittest_args = parser.parse_known_args() |
| 54 | |
| 55 | if 'COVERAGE' in os.environ: |
| 56 | parsed_args.coverage = ( os.environ[ 'COVERAGE' ] == 'true' ) |
| 57 | |
| 58 | return parsed_args, unittest_args |
| 59 | |
| 60 | |
| 61 | def BuildYcmdLibs( args ): |