Skip to content

Commit 81c4099

Browse files
committed
[FEATURE] Added a --no-tests option.
1 parent c978741 commit 81c4099

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

42PyChecker.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def main():
3737
parser.add_argument("-p", "--path", help="The path of the project you want to test.", default="", type=str)
3838
parser.add_argument("--show-w", help="Displays the warranty warning from the license.", action="store_true")
3939
parser.add_argument("--show-c", help="Displays the conditions warning from the license.", action="store_true")
40+
parser.add_argument("--no-tests", help="Disables all the testing suites for the project.", action="store_true")
4041
args = parser.parse_args()
4142
if args.show_w:
4243
print_header()
@@ -55,6 +56,10 @@ def main():
5556
with open(root_path + '/.github/LICENSE.lesser', 'r') as file:
5657
print(file.read())
5758
return
59+
if args.no_tests:
60+
args.no_libftest = True
61+
args.no_maintest = True
62+
args.no_moulitest = True
5863
if args.project is None:
5964
parser.error("You need to specify a project.")
6065
if args.path == "":

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ e.g.: `python3 ./42PyChecker.py --project=libft --path=/Users/admin/Projects/lib
6161

6262
Disable a specific test.
6363

64+
##### `--no-tests`
65+
This will disable all testing suites but run the other tests.
66+
6467
#### `--show-c` and `--show-w`
6568
These options will display respectively the License and the Warranty.
6669

0 commit comments

Comments
 (0)