forked from robertpenner/as3-signals
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rakefile.rb
48 lines (41 loc) · 1.14 KB
/
rakefile.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
require 'rubygems'
require 'sprout'
sprout 'as3'
asunit_home = ENV['ASUNIT_HOME'] || File.dirname(__FILE__) + '/../AsUnit-bacc/asunit-4.0'
def apply_as3_meta_data_args(t)
[
"After",
"AfterClass",
"Before",
"BeforeClass",
"Ignore",
"Inject",
"RunWith",
"Suite",
"Test"
].each do |arg|
t.keep_as3_metadata << arg
end
end
mxmlc "bin/AS3SignalsRunner.swf" do |t|
t.default_size = '1000 500'
t.input = 'tests/org/osflash/signals/AllTestsRunner.as'
#t.allow_source_path_overlap = true
t.source_path << 'src'
t.source_path << 'tests'
t.library_path << 'libs/asunit4-alpha.swc'
t.gem_version = '3.3.1'
end
mxmlc "bin/AS3SignalsAsUnitRunner.swf" do |t|
t.default_size = '1000 500'
t.input = 'tests/org/osflash/signals/AllTestsRunner.as'
t.source_path << 'src'
t.library_path << "#{asunit_home}/lib/Reflection.swc"
t.source_path << "#{asunit_home}/src"
t.gem_version = '3.3.1'
apply_as3_meta_data_args(t)
end
desc "Run the Test Harness"
flashplayer :test => 'bin/AS3SignalsRunner.swf'
desc "Run the Test Harness against AsUnit source"
flashplayer :test_asunit => 'bin/AS3SignalsAsUnitRunner.swf'