From 6ee47cec6ff721a7f9c258f8d879ff2f2f563f3e Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Thu, 25 Oct 2018 11:01:09 -0700 Subject: [PATCH] Delete obsolete dev_scripts/run_all_tests.sh script, and add xvfb-run info to the build instructions --- BUILD.md | 6 ++++++ dev_scripts/run_all_tests.sh | 14 -------------- 2 files changed, 6 insertions(+), 14 deletions(-) delete mode 100755 dev_scripts/run_all_tests.sh diff --git a/BUILD.md b/BUILD.md index b92f4110..2a055d98 100644 --- a/BUILD.md +++ b/BUILD.md @@ -156,3 +156,9 @@ pytest --runtor tests/ ``` Keep in mind that the Tor tests take a lot longer to run than local mode, but they are also more comprehensive. + +You can also choose to wrap the tests in `xvfb-run` so that a ton of OnionShare windows don't pop up on your desktop (you may need to install the `xorg-x11-server-Xvfb` package), like this: + +```sh +xvfb-run pytest tests/ +``` diff --git a/dev_scripts/run_all_tests.sh b/dev_scripts/run_all_tests.sh deleted file mode 100755 index 90ef1dc0..00000000 --- a/dev_scripts/run_all_tests.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash -ROOT="$( dirname $(cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd ))" - -# CLI tests -cd $ROOT -pytest tests/ - -# Local GUI tests -cd $ROOT/tests_gui_local -./run_unit_tests.sh - -# Tor GUI tests -cd $ROOT/tests_gui_tor -./run_unit_tests.sh