Skip to content

Commit

Permalink
Visual test with Firefox and tox (#1513)
Browse files Browse the repository at this point in the history
* Visual test with Firefox and tox

Allows developer to run

```
tox -e py310-sphinx72-firefox
```

This will run the tests and open a Firefox after building the demo site
showing the `demo/demo.html` page on it.

Then, you can also run:

```
tox -e py310-sphinx61-firefox
```

and compare the visual differences.

Idea copied from #1388
Closes #1388

* Default value for `DISPLAY` and `--new-tab`

* Simplify the idea :)
  • Loading branch information
humitos authored Aug 23, 2023
1 parent 923f987 commit c190c00
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ deps =
sphinx72: Sphinx>=7.2,<7.3
sphinxlatest: Sphinx
dev: https://github.com/sphinx-doc/sphinx/archive/refs/heads/master.zip
allowlist_externals =
echo
commands =
pytest {posargs} tests/
sphinx-build -b html -Dhtml4_writer=0 -d {envtmpdir}/doctrees docs/ {envtmpdir}/html
echo "Open the following URL for visual testing: file://{envtmpdir}/html/demo/demo.html"

0 comments on commit c190c00

Please sign in to comment.