From 08150e8d969f9571957beb04b935de3bd39fb6f3 Mon Sep 17 00:00:00 2001 From: Ada Werefox Date: Tue, 17 Jan 2023 18:26:17 +0000 Subject: [PATCH] Updated readme to reflect testing implementation. --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 3538495..aee205d 100755 --- a/README.md +++ b/README.md @@ -16,6 +16,18 @@ This will handle starting a new container of Next.js with all required packages Keep in mind that you should **never** host this site in development mode publicly. This sentiment reflected in the documentation for Next.js. +## Testing + +It's in the preliminary stages right now, but if you want to try your hand at running automated browser tests yourself: + +``` +./run_tests.sh +``` + +That will start up a docker compose setup with a Selenium standalone server and a Python runner for the test script(s). I plan to add much more here in the future, like the ability to specify which test suites to run, what URL to test at, organizing output, etc. + +For now, this will just run a test that opens the browser to [werefox.cafe](https://werefox.cafe) and waits 10 seconds, then closes. Just a small smoke test. + ## Production You can also use the `deploy.sh` script to start up the container in production mode.