@@ -28,23 +28,21 @@ jobs:
28
28
- script : python -m pip install --upgrade pip && pip install -r requirements.txt
29
29
displayName : ' Install dependencies'
30
30
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'
36
35
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)'
39
40
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 '
42
43
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'
48
46
49
47
- task : PublishTestResults@2
50
48
inputs :
0 commit comments