-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
49 lines (41 loc) · 1.03 KB
/
Rakefile
File metadata and controls
49 lines (41 loc) · 1.03 KB
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
48
49
require 'rubygems'
require 'rake'
task :default => [:build]
desc 'Build gem'
task :build do
puts 'Building gem'
`gem build ppcurses.gemspec`
end
desc 'Builds a new gem and installs it locally'
task :install_latest do
Rake::Task['build'].execute
`gem install ppcurses-0.1.0.gem`
end
desc 'Run All tests'
task :testAll do
Rake::Task['testActions'].execute
Rake::Task['testMenu'].execute
Rake::Task['testForm'].execute
end
desc 'Run All Action tests'
task :testActions do
ruby 'test/getDataAction.rb'
ruby 'test/getEnumStringAction.rb'
ruby 'test/getIntegerAction.rb'
ruby 'test/getBooleanAction.rb'
ruby 'test/getStringAction.rb'
end
desc 'Run All Menu tests'
task :testMenu do
ruby 'test/menu/displayMenu.rb'
ruby 'test/menu/changeMenuBorder.rb'
ruby 'test/menu/menuInMenu.rb'
ruby 'test/menu/compositeMenu.rb'
ruby 'test/menu/menuWmenuItems.rb'
ruby 'test/menu/menuItemsWTarget.rb'
end
desc 'Run All Form tests'
task :testForm do
ruby 'test/form/simple_form.rb'
ruby 'test/form/menu_opens_form.rb'
end