X-Git-Url: http://nitlanguage.org diff --git a/src/nitunit.nit b/src/nitunit.nit index 7eb90bb..7969f29 100644 --- a/src/nitunit.nit +++ b/src/nitunit.nit @@ -12,7 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -# Program to extract and execute unit tests from nit source files +# Testing tool. +# see `testing/README` module nitunit import testing @@ -52,7 +53,7 @@ end var model = new Model var modelbuilder = new ModelBuilder(model, toolcontext) -var mmodules = modelbuilder.parse(args) +var mmodules = modelbuilder.parse_full(args) modelbuilder.run_phases if toolcontext.opt_gen_unit.value then @@ -72,9 +73,8 @@ end var file = toolcontext.opt_output.value if file == null then file = "nitunit.xml" page.write_to_file(file) -print "Results saved in {file}" # print docunits results -print "\nDocUnits:" +print "DocUnits:" if modelbuilder.unit_entities == 0 then print "No doc units found" else if modelbuilder.failed_entities == 0 and not toolcontext.opt_noact.value then