From 24e2bd5821b09d4d7e243fc62ab36f45454a0a03 Mon Sep 17 00:00:00 2001
From: Catalin Mititiuc
Date: Wed, 17 Apr 2024 15:56:41 -0700
Subject: Add beginning setup for tests
---
README.md | 10 ++++++++++
1 file changed, 10 insertions(+)
(limited to 'README.md')
diff --git a/README.md b/README.md
index f6682a1..394ed06 100644
--- a/README.md
+++ b/README.md
@@ -8,6 +8,16 @@
Visit `localhost:8080` to view.
+## Run a test
+
+You need chrome and chromedriver installed. The Dockerfile builds an image that does that. Then run the test with that image.
+
+`--network host` gives the container internet access. Necessary if tests make outside requests.
+
+ docker run --rm -it -v $PWD:/usr/src/app --network host btroops node google_test
+
+TODO add firefox and geckodriver
+
## Rough way to save the SVG map generated by JavaScript client-side
const XMLS = new XMLSerializer();
--
cgit v1.2.3