@@ -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