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 | |
parent | eac9e7c1031c416b04536c686bc83a1699ee4911 (diff) |
enable unit test results for selenium
-rw-r--r-- | .gitlab-ci.yml | 4 | ||||
-rw-r--r-- | tests/integration/selenium_test.py | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0a04b394f..8ab1a4991 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -95,6 +95,10 @@ selenium: - python3 tests/integration/selenium_test.py needs: - job: phpunit-integration + artifacts: + when: always + reports: + junit: selenium-report.xml ttrss-web-nginx:publish: stage: publish 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)) |