Skip to content

Commit

Permalink
test circleci
Browse files Browse the repository at this point in the history
  • Loading branch information
philipkcl committed Nov 24, 2023
1 parent 077c9b7 commit 6bf0503
Showing 1 changed file with 6 additions and 20 deletions.
26 changes: 6 additions & 20 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@ jobs:
python portality/cms/build_fragments.py
python portality/cms/build_sass.py
# - run:
# name: Run unit tests
# command: |
# TESTS=$(circleci tests glob "doajtest/unit/test_lib*.py" | circleci tests split)
# pytest -v --color=yes --code-highlight=yes --log-level=DEBUG --junitxml=test-results/doajtest-unit.xml $TESTS
- run:
name: Run unit tests
command: |
TESTS=$(circleci tests glob "doajtest/unit/**/*.py" | circleci tests split)
pytest -v --color=yes --code-highlight=yes --log-level=DEBUG --junitxml=test-results/doajtest-unit.xml $TESTS
- run:
name: Env for selenium
command: |
Expand All @@ -51,27 +52,12 @@ jobs:
cat test.cfg
google-chrome --version
# - run:
# name: "[DEBUG] Run selenium tests"
# command: |
# pytest -v -s --color=yes --code-highlight=yes --log-level=DEBUG --junitxml=test-results/doajtest-selenium.xml doajtest/seleniumtest/test_google.py
#
# - run:
# name: "[DEBUG] Run selenium tests circleci"
# command: |
# pytest -v -s --color=yes --code-highlight=yes --log-level=DEBUG --junitxml=test-results/doajtest-selenium.xml doajtest/seleniumtest/test_circleci.py

- run:
name: Run selenium tests
command: |
TESTS=$(circleci tests glob "doajtest/seleniumtest/**/*.py" | circleci tests split)
pytest -v -s --color=yes --code-highlight=yes --log-level=DEBUG --junitxml=test-results/doajtest-selenium.xml $TESTS
# - run:
# name: "[DEBUG] Run selenium tests"
# command: |
# pytest -v -s --color=yes --code-highlight=yes --log-level=DEBUG --junitxml=test-results/doajtest-selenium.xml doajtest/seleniumtest

- store_test_results:
path: test-results
working_directory: ~/doaj
Expand Down

0 comments on commit 6bf0503

Please sign in to comment.