diff options
author | Andrew Dolgov <[email protected]> | 2023-12-02 12:44:21 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2023-12-02 12:44:21 +0300 |
commit | dbb6e7291ebb8c09dc0460b7b45098bf112d1494 (patch) | |
tree | bf929d8044d7688d1c186eaa790bdb4d4b29219a /tests/integration | |
parent | eac9e7c1031c416b04536c686bc83a1699ee4911 (diff) |
enable unit test results for selenium
Diffstat (limited to 'tests/integration')
-rw-r--r-- | tests/integration/selenium_test.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/integration/selenium_test.py b/tests/integration/selenium_test.py index 780f46265..f2d16fd73 100644 --- a/tests/integration/selenium_test.py +++ b/tests/integration/selenium_test.py @@ -2,6 +2,7 @@ import os import unittest +import xmlrunner from selenium import webdriver from selenium.webdriver.common.by import By @@ -67,4 +68,5 @@ class SeleniumTest(unittest.TestCase): assert self.driver.find_element(by=By.CSS_SELECTOR, value="#feedTree").is_displayed() -unittest.main() +with open('selenium-results.xml', 'wb') as output: + unittest.main(testRunner=xmlrunner.XMLTestRunner(output=output)) |