index : btroops | |
Virtual board game-aid for BattleTroops, an infantry combat simulator wargame published by FASA in 1989. |
aboutsummaryrefslogtreecommitdiff |
diff options
author | Catalin Mititiuc <webdevcat@proton.me> | 2024-04-17 15:56:41 -0700 |
---|---|---|
committer | Catalin Mititiuc <webdevcat@proton.me> | 2024-04-17 15:56:41 -0700 |
commit | 24e2bd5821b09d4d7e243fc62ab36f45454a0a03 (patch) | |
tree | 464830f06896e3725da889159ae6296781071c7f /README.md | |
parent | 143e3cdb45a96912d6791a37f64bf3893879cd93 (diff) |
Add beginning setup for tests
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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(); |