Refactor scouting application testing
When testing the scouting application, we need a couple of components to
work together: the webserver itself and the fake The Blue Alliance API
server. This patch consolidates the logic into a single library that
both `//scouting:scouting_test` and the `cli_test` can use.
A future patch will add a postgresql server to this library.
Signed-off-by: Philipp Schrader <philipp.schrader@gmail.com>
Change-Id: I4d561731bcaf1ed5a943de1ba8fe406894cd6ef8
diff --git a/scouting/BUILD b/scouting/BUILD
index a769426..0c2c641 100644
--- a/scouting/BUILD
+++ b/scouting/BUILD
@@ -33,7 +33,7 @@
"//scouting/www:index.html",
"//scouting/www:zonejs_copy",
],
- visibility = ["//scouting/deploy:__pkg__"],
+ visibility = ["//visibility:public"],
)
protractor_ts_test(
@@ -42,5 +42,5 @@
":scouting_test.ts",
],
on_prepare = ":scouting_test.protractor.on-prepare.js",
- server = ":scouting",
+ server = "//scouting/testing:scouting_test_servers",
)