@@ -586,9 +586,10 @@ namespace :py do
586
586
sh "python3 -m twine upload bazel-bin/py/selenium-#{ python_version } .tar.gz"
587
587
end
588
588
589
- desc 'Update generated Python files for local development'
590
- task :update do
589
+ desc 'generate and copy files required for local development'
590
+ task :local_dev do
591
591
Bazel . execute ( 'build' , [ ] , '//py:selenium' )
592
+ Rake ::Task [ 'grid' ] . invoke
592
593
593
594
FileUtils . rm_rf ( 'py/selenium/webdriver/common/devtools/' )
594
595
FileUtils . cp_r ( 'bazel-bin/py/selenium/webdriver/.' , 'py/selenium/webdriver' , remove_destination : true )
@@ -674,22 +675,28 @@ namespace :py do
674
675
sh 'tox -c py/tox.ini -e linting'
675
676
end
676
677
677
- namespace :test do
678
- desc 'Python unit tests'
679
- task :unit do
678
+ namespace :test do
679
+ desc 'Python unit tests'
680
+ task :unit do
681
+ Rake ::Task [ 'py:clean' ] . invoke
682
+ Bazel . execute ( 'test' , [ '--test_size_filters=small' ] , '//py/...' )
683
+ end
684
+
685
+ %i[ chrome edge firefox safari ] . each do |browser |
686
+ desc "Python #{ browser } tests"
687
+ task browser do
680
688
Rake ::Task [ 'py:clean' ] . invoke
681
- Bazel . execute ( 'test' , [ '--test_size_filters=small' ] , '//py/...' )
689
+ Bazel . execute ( 'test' , [ ] , "//py:common-#{ browser } " )
690
+ Bazel . execute ( 'test' , [ ] , "//py:test-#{ browser } " )
682
691
end
692
+ end
683
693
684
- %i[ chrome edge firefox safari ] . each do |browser |
685
- desc "Python #{ browser } tests"
686
- task browser do
687
- Rake ::Task [ 'py:clean' ] . invoke
688
- Bazel . execute ( 'test' , [ ] , "//py:common-#{ browser } " )
689
- Bazel . execute ( 'test' , [ ] , "//py:test-#{ browser } " )
690
- end
691
- end
694
+ desc "Python Remote tests with Firefox"
695
+ task :remote do
696
+ Rake ::Task [ 'py:clean' ] . invoke
697
+ Bazel . execute ( 'test' , [ ] , "//py:test-remote" )
692
698
end
699
+ end
693
700
end
694
701
695
702
def ruby_version
@@ -706,7 +713,7 @@ namespace :rb do
706
713
end
707
714
708
715
desc 'Update generated Ruby files for local development'
709
- task :update do
716
+ task :local_dev do
710
717
Bazel . execute ( 'build' , [ ] , '@bundle//:bundle' )
711
718
Rake ::Task [ 'rb:build' ] . invoke
712
719
Rake ::Task [ 'grid' ] . invoke
0 commit comments