-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
63 lines (56 loc) · 1.48 KB
/
Rakefile
File metadata and controls
63 lines (56 loc) · 1.48 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
task :build do
sh "gradle build"
end
task :serve => :build do
sh "java -jar build/libs/HttpServer-1.0-SNAPSHOT.jar -p 5000 -d cob_spec/public"
end
task :run_passing => :build do
features_passing = [
"ImageContent",
"PartialContent",
"MediaTypes",
"DirectoryLinks",
"DirectoryListing",
"CookieData",
"ParameterDecode",
"FileContents",
"SimplePost",
"SimpleOption",
"RedirectPath",
"MethodNotAllowed",
"FourEightTeen",
"FourOhFour",
"SimplePut",
"SimpleHead",
"SimpleGet",
]
Dir.chdir('cob_spec') do
features_passing.each do |feature|
sh "java -jar fitnesse.jar -c \"HttpTestSuite.ResponseTestSuite.#{feature}?test&format=text\""
end
sh "java -jar fitnesse.jar -c \"HttpTestSuite.SimultaneousTestSuite.TimeToComplete?test&format=text\""
end
end
task :run_simultaneous => :build do
end
task :run_next => :build do
features_pending = [
"BasicAuth",
"PatchWithEtag",
"PostGetPutGetDeleteGet"]
Dir.chdir('cob_spec') do
sh "java -jar fitnesse.jar -c \"HttpTestSuite.ResponseTestSuite.#{features_pending.first}?test&format=text\""
end
end
task :run_regressed => :build do
Dir.chdir('cob_spec') do
# feature = nil
# sh "java -jar fitnesse.jar -c \"HttpTestSuite.ResponseTestSuite.#{feature}?test&format=text\""
end
end
task :verify => [:run_passing, :run_next] do
puts "Feature passed! Nothing broke in the process!"
end
task :default => :run_next do
puts "Feature passed!"
end