From af78fd63b14fd4dea4c0880960b707e76ffabfad Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Mon, 6 Jun 2016 13:44:38 -0400 Subject: [PATCH] nitunit: drop -t option Signed-off-by: Jean Privat --- src/nitunit.nit | 6 +----- src/testing/testing_suite.nit | 2 -- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/nitunit.nit b/src/nitunit.nit index 7c68cd4..996fe27 100644 --- a/src/nitunit.nit +++ b/src/nitunit.nit @@ -20,7 +20,7 @@ import testing var toolcontext = new ToolContext -toolcontext.option_context.add_option(toolcontext.opt_full, toolcontext.opt_output, toolcontext.opt_dir, toolcontext.opt_noact, toolcontext.opt_pattern, toolcontext.opt_file, toolcontext.opt_autosav, toolcontext.opt_gen_unit, toolcontext.opt_gen_force, toolcontext.opt_gen_private, toolcontext.opt_gen_show, toolcontext.opt_nitc) +toolcontext.option_context.add_option(toolcontext.opt_full, toolcontext.opt_output, toolcontext.opt_dir, toolcontext.opt_noact, toolcontext.opt_pattern, toolcontext.opt_autosav, toolcontext.opt_gen_unit, toolcontext.opt_gen_force, toolcontext.opt_gen_private, toolcontext.opt_gen_show, toolcontext.opt_nitc) toolcontext.tooldescription = "Usage: nitunit [OPTION]... ...\nExecutes the unit tests from Nit source files." toolcontext.process_options(args) @@ -31,10 +31,6 @@ if toolcontext.opt_gen_unit.value then print "Option --pattern cannot be used with --gen-suite" exit(0) end - if toolcontext.opt_file.value != null then - print "Option --target-file cannot be used with --gen-suite" - exit(0) - end else if toolcontext.opt_gen_force.value then print "Option --force must be used with --gen-suite" diff --git a/src/testing/testing_suite.nit b/src/testing/testing_suite.nit index b66c9ab..f102c6c 100644 --- a/src/testing/testing_suite.nit +++ b/src/testing/testing_suite.nit @@ -20,8 +20,6 @@ import html private import annotation redef class ToolContext - # -- target-file - var opt_file = new OptionString("Specify test suite location", "-t", "--target-file") # --pattern var opt_pattern = new OptionString("Only run test case with name that match pattern", "-p", "--pattern") # --autosav -- 1.7.9.5