Skip to content

Commit e074df8

Browse files
committed
Update Azure Pipelines
1 parent dd1872f commit e074df8

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

azure-pipelines.yml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,23 +28,21 @@ jobs:
2828
- script: python -m pip install --upgrade pip && pip install -r requirements.txt
2929
displayName: 'Install dependencies'
3030

31-
- script: sudo apt install google-chrome-stable
32-
displayName: 'Install Chrome'
33-
34-
- script: sudo apt-get install firefox
35-
displayName: 'Install Firefox'
31+
- script: |
32+
sudo apt install google-chrome-stable
33+
sudo apt-get install firefox
34+
displayName: 'Install Chrome and Firefox'
3635
37-
- script: seleniumbase install chromedriver
38-
displayName: 'Install Chromedriver'
36+
- script: |
37+
seleniumbase install chromedriver
38+
seleniumbase install geckodriver
39+
displayName: 'Install chromedriver and geckodriver (Firefox Webdriver)'
3940
40-
- script: seleniumbase install geckodriver
41-
displayName: 'Install Geckodriver (Firefox driver)'
41+
- script: pytest examples/my_first_test.py --browser=chrome --headless -v -s --doctest-modules --junitxml=junit/test-results.xml
42+
displayName: 'pytest examples/my_first_test.py --browser=chrome --headless'
4243

43-
- script: |
44-
pip install pytest
45-
pytest examples/my_first_test.py --browser=chrome --headless --junitxml=junit/test-results.xml
46-
pytest examples/my_first_test.py --browser=firefox --headless --junitxml=junit/test-results.xml
47-
displayName: 'pytest'
44+
- script: pytest examples/my_first_test.py --browser=firefox --headless -v -s --doctest-modules --junitxml=junit/test-results.xml
45+
displayName: 'pytest examples/my_first_test.py --browser=firefox --headless'
4846

4947
- task: PublishTestResults@2
5048
inputs:

0 commit comments

Comments
 (0)