Skip to content

Commit 96952fc

Browse files
Andreas Tolfsenandreastt
Andreas Tolfsen
authored andcommitted
build: compile tests by default
Add target `tests' to build tests only, and make it a dependency of `build', meaning they are built by default.
1 parent a8b9c27 commit 96952fc

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

Diff for: Rakefile

+19-5
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,25 @@ crazy_fun.create_tasks(Dir["**/build.desc"])
9999
# build can also be done here. For example, here we set the default task
100100
task :default => [:test]
101101

102-
103-
task :all => [:'selenium-java']
102+
task :all => [
103+
:"selenium-java",
104+
"//java/client/test/org/openqa/selenium/environment/webserver:webserver:uber"
105+
]
104106
task :all_zip => [:'selenium-java_zip']
107+
task :tests => [
108+
"//java/client/test/org/openqa/selenium/htmlunit:test_basic",
109+
"//java/client/test/org/openqa/selenium/htmlunit:test_js",
110+
"//java/client/test/org/openqa/selenium/firefox:test_synthesized",
111+
"//java/client/test/org/openqa/selenium/firefox:test_native",
112+
"//java/client/test/org/openqa/selenium/ie:test",
113+
"//java/client/test/org/openqa/selenium/chrome:test",
114+
"//java/client/test/org/openqa/selenium/opera:test_blink",
115+
"//java/client/test/org/openqa/selenium/lift:test",
116+
"//java/client/test/org/openqa/selenium/support:SmallTests",
117+
"//java/client/test/org/openqa/selenium/support:LargeTests",
118+
"//java/client/test/org/openqa/selenium/remote:common-tests",
119+
"//java/client/test/org/openqa/selenium/remote:client-tests"
120+
]
105121
task :chrome => [ "//java/client/src/org/openqa/selenium/chrome" ]
106122
task :common_core => [ "//common:core" ]
107123
task :grid => [ "//java/server/src/org/openqa/grid/selenium" ]
@@ -212,7 +228,6 @@ if (opera?)
212228
task :test_java_webdriver => [:test_opera]
213229
end
214230

215-
216231
task :test_java => [
217232
"//java/client/test/org/openqa/selenium/atoms:test:run",
218233
"//java/client/test/org/openqa/selenium:SmallTests:run",
@@ -248,8 +263,7 @@ if (python?)
248263
task :test => [ :test_py ]
249264
end
250265

251-
252-
task :build => [:all, :remote, :selenium]
266+
task :build => [:all, :remote, :selenium, :tests]
253267

254268
desc 'Clean build artifacts.'
255269
task :clean do

0 commit comments

Comments
 (0)