This function parse the command line arguments(project's package name e.g. browser) & add into parser :return args: command line argument for pgadmin's package name :rtype: argparse namespace
()
| 355 | |
| 356 | |
| 357 | def add_arguments(): |
| 358 | """ |
| 359 | This function parse the command line arguments(project's package name |
| 360 | e.g. browser) & add into parser |
| 361 | |
| 362 | :return args: command line argument for pgadmin's package name |
| 363 | :rtype: argparse namespace |
| 364 | """ |
| 365 | |
| 366 | parser = argparse.ArgumentParser(description='Test suite for pgAdmin4') |
| 367 | parser.add_argument( |
| 368 | '--pkg', |
| 369 | help='Executes the test cases of particular package and subpackages' |
| 370 | ) |
| 371 | parser.add_argument( |
| 372 | '--exclude', |
| 373 | help='Skips execution of the test cases of particular package and ' |
| 374 | 'sub-packages' |
| 375 | ) |
| 376 | parser.add_argument( |
| 377 | '--default_browser', |
| 378 | help='Executes the feature test in specific browser' |
| 379 | ) |
| 380 | parser.add_argument( |
| 381 | '--modules', |
| 382 | help='Executes the feature test for specific modules in pkg' |
| 383 | ) |
| 384 | parser.add_argument('--parallel', nargs='?', const=True, |
| 385 | type=bool, default=False, |
| 386 | help='Enable parallel Feature Tests') |
| 387 | arg = parser.parse_args() |
| 388 | |
| 389 | return arg |
| 390 | |
| 391 | |
| 392 | def sig_handler(signo, frame): |