From: Mike D. Lowis Date: Fri, 6 Apr 2012 17:11:14 +0000 (-0400) Subject: Updated default rake task to print coverage info X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=f7275666658cc395d2ee2c945e15a4a792fe442e;p=archive%2Fdlang.git Updated default rake task to print coverage info --- diff --git a/rakefile.rb b/rakefile.rb index 2eec605..89e249d 100644 --- a/rakefile.rb +++ b/rakefile.rb @@ -87,7 +87,7 @@ DLangTests.setup_default_rake_tasks() # Main Tasks #------------------------------------------------------------------------------ desc 'Build all binary artifacts and run all tests' -task :default => [ :test, :debug, :release ] +task :default => [ :test, :debug, :release, :coverage ] desc 'Build and link all artifacts' task :release => [ :parse_utils, DLangParser.name() ] @@ -122,7 +122,7 @@ task :unit_test_pp do end desc 'Generate and display the test coverage statistics for each test file' -task :coverage do #=> [ :test ] do +task :coverage => [ :test ] do out_dir = 'build/test/gcov' tests = FileList['tests/**/test_*.cpp']