diff --git a/bin/run_tests.py b/bin/run_tests.py index aadfd15..1770779 100755 --- a/bin/run_tests.py +++ b/bin/run_tests.py @@ -31,6 +31,13 @@ help='Path to Firefox binary', ) def main(firefox_bin): + if not firefox_bin: + raise click.BadParameter( + 'No Firefox binary found; configure the path to Firefox with `npm config`.' + ) + elif not os.path.exists(firefox_bin): + raise click.BadParameter('Path to Firefox binary does not exist.') + click.echo('== Building test bundle with Webpack') bundle_handle, bundle_path = mkstemp() try: