Changeset

370:9ade55e059ea

Update test.lua with a work-in-progress
author Matthew Wild <mwild1@gmail.com>
date Fri, 21 Nov 2008 05:46:15 +0000
parents 369:42de92add67b
children 371:0dc5819660e8
files tests/test.lua
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test.lua	Fri Nov 21 05:07:41 2008 +0000
+++ b/tests/test.lua	Fri Nov 21 05:46:15 2008 +0000
@@ -75,12 +75,12 @@
 			if not success then
 				print("TEST FAILED! Unit: ["..unitname.."] Function: ["..name.."]");
 				print("   Location: "..ret:gsub(":%s*\n", "\n"));
-				line_info(name, false);
+				line_info(name, false, report_file);
 			elseif verbosity >= 2 then
 				print("TEST SUCCEEDED: ", unitname, name);
-				print(string.format("TEST COVERED %d/%d lines", line_info(name, true)));
+				print(string.format("TEST COVERED %d/%d lines", line_info(name, true, report_file)));
 			else
-				line_info(name, success);
+				line_info(name, success, report_file);
 			end
 		end
 	end