diff --git a/pyproject.toml b/pyproject.toml
index f4e153a2..ce5d6bcc 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -58,6 +58,7 @@ test = [
"pre-commit>=2.17.0",
"pytest-xdist>=2.4.0",
"pytest-mock>=3.7.0",
+ "pytest-rerunfailures>=11.1.2",
"selenium>=4.3.0",
"tox>=3.24.5",
]
diff --git a/src/pytest_html/resources/index.jinja2 b/src/pytest_html/resources/index.jinja2
index a7f0ee25..ced04544 100644
--- a/src/pytest_html/resources/index.jinja2
+++ b/src/pytest_html/resources/index.jinja2
@@ -97,13 +97,13 @@
-
-
-
-
+
+
+
+
/
diff --git a/src/pytest_html/scripts/main.js b/src/pytest_html/scripts/main.js
index ffff5332..3f0f31b7 100644
--- a/src/pytest_html/scripts/main.js
+++ b/src/pytest_html/scripts/main.js
@@ -65,7 +65,12 @@ const renderDerived = (tests, collectedItems, isFinished) => {
possibleResults.forEach(({ result, label }) => {
const count = tests.filter((test) => test.result.toLowerCase() === result).length
const input = document.querySelector(`input[data-test-result="${result}"]`)
+ const lastInput = document.querySelector(`input[data-test-result="${result}"]:last-of-type`)
document.querySelector(`.${result}`).innerText = `${count} ${label}`
+ // add a comma and whitespace between the results
+ if (input !== lastInput) {
+ document.querySelector(`.${result}`).innerText += ', '
+ }
input.disabled = !count
input.checked = currentFilter.includes(result)
diff --git a/testing/test_integration.py b/testing/test_integration.py
index 72862bdb..27b29664 100644
--- a/testing/test_integration.py
+++ b/testing/test_integration.py
@@ -81,7 +81,7 @@ def assert_results(
if isinstance(number, int):
number_of_tests += number
result = get_text(page, f"span[class={outcome}]")
- assert_that(result).is_equal_to(f"{number} {OUTCOMES[outcome]}")
+ assert_that(result).matches(rf"{number} {OUTCOMES[outcome]}")
def get_element(page, selector):