Permalink
Browse files

moved unit tests out into framework and added a rake task for running…

… them: rake test:units
  • Loading branch information...
1 parent 8c2632c commit e55ecc8ef96e617284bae5b4fbd2d83f6b54124d Greg Borenstein committed Jul 22, 2008
Showing with 12 additions and 4 deletions.
  1. +8 −0 project_dev.rake
  2. +2 −2 {lib → }/test/test_array_processing.rb
  3. +2 −2 {lib → }/test/test_variable_processing.rb
View
@@ -4,6 +4,14 @@ end
namespace :test do
+ desc "run the framework unit tests"
+ task :units do
+ FileList['test/test_*.rb'].each do |test|
+ sh %{ ruby #{RAD_ROOT}/#{test} }
+ end
+ end
+
+
desc "iterate through all the sketches in the example directory"
task :upload => :gather do
@examples.each {|e| run_tests(e, "upload")}
@@ -3,8 +3,8 @@
# need to tell it where we are
# lets review these
C_VAR_TYPES = "int|void|unsigned|long|short|uint8_t|static|byte|float"
-require "#{File.expand_path(File.dirname(__FILE__))}/../rad/variable_processing"
-require "#{File.expand_path(File.dirname(__FILE__))}/../rad/arduino_sketch"
+require "#{File.expand_path(File.dirname(__FILE__))}/../lib/rad/variable_processing"
+require "#{File.expand_path(File.dirname(__FILE__))}/../lib/rad/arduino_sketch"
require 'test/unit'
@@ -5,8 +5,8 @@
# need to tell it where we are
# lets review these
C_VAR_TYPES = "int|void|unsigned|long|short|uint8_t|static|byte|float"
-require 'vendor/rad/variable_processing'
-require 'vendor/rad/arduino_sketch'
+require "#{File.expand_path(File.dirname(__FILE__))}/../lib/rad/variable_processing"
+require "#{File.expand_path(File.dirname(__FILE__))}/../lib/rad/arduino_sketch"
require 'test/unit'

0 comments on commit e55ecc8

Please sign in to comment.