Class: Buildr::FlexUnit4
- Inherits:
-
TestFramework::Base
- Object
- TestFramework::Base
- Buildr::FlexUnit4
- Defined in:
- lib/buildr/as3/tests.rb
Class Method Summary collapse
-
.applies_to?(project) ⇒ Boolean
:nodoc:.
Instance Method Summary collapse
-
#run(tests, dependencies) ⇒ Object
:nodoc:.
-
#tests(dependencies) ⇒ Object
def initialize puts “FlexUnit4 init” end.
Class Method Details
.applies_to?(project) ⇒ Boolean
:nodoc:
28 29 30 |
# File 'lib/buildr/as3/tests.rb', line 28 def applies_to?(project) #:nodoc: project.test.compile.language == :actionscript end |
Instance Method Details
#run(tests, dependencies) ⇒ Object
:nodoc:
42 43 44 45 46 47 48 49 |
# File 'lib/buildr/as3/tests.rb', line 42 def run(tests, dependencies) #:nodoc: puts "FlexUnit4 run" Buildr.ant('flexunit') do |ant| taskdef = Buildr.artifact(FlexUnit4.taskdef_spec) taskdef.invoke ant.taskdef :name=>'flexunit', :resource=>"flexUnitTasks.tasks", :classpath=>taskdef.to_s end end |
#tests(dependencies) ⇒ Object
def initialize
puts "FlexUnit4 init"
end
37 38 39 40 |
# File 'lib/buildr/as3/tests.rb', line 37 def tests(dependencies) #:nodoc: puts "FlexUnit4 run" [] end |