Skip to content

Commit

Permalink
Excluding support tests from coverage (temporarily) and moving sonar …
Browse files Browse the repository at this point in the history
…scanner to the small test job to upload test coverage to the cloud
  • Loading branch information
barancev committed Dec 5, 2020
1 parent cee453c commit f86a1d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ test --test_timeout=180
test --collect_code_coverage
test --combined_report=lcov
test --coverage_report_generator=@bazel_sonarqube//:sonarqube_coverage_generator
test --instrumentation_filter=^//java/client/test/org/openqa/selenium[/:],^//java/server/test/org/openqa/selenium/docker[/:],^//java/server/test/org/openqa/selenium/grid/config[/:],^//java/server/test/org/openqa/selenium/grid/data[/:],^//java/server/test/org/openqa/selenium/grid/distributor/local[/:],^//java/server/test/org/openqa/selenium/grid/distributor/selector[/:],^//java/server/test/org/openqa/selenium/grid/graphql[/:],^//java/server/test/org/openqa/selenium/grid/node[/:],^//java/server/test/org/openqa/selenium/grid/sessionmap[/:],^//java/server/test/org/openqa/selenium/grid/sessionqueue[/:],^//java/server/test/org/openqa/selenium/grid/web[/:],^//java/server/test/org/openqa/selenium/netty/server[/:],-^//java/client/test/org/openqa/selenium/support[/:]
10 changes: 5 additions & 5 deletions .github/workflows/java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@ jobs:
uses: ./.github/actions/bazel
with:
command: build grid
- name: Sonar Scanner
uses: ./.github/actions/sonar-cloud
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

small_tests:
needs: build
Expand Down Expand Up @@ -70,6 +65,11 @@ jobs:
uses: ./.github/actions/bazel-test
with:
query: attr(size, small, tests(//java/...)) except attr(tags, lint, tests(//java/...))
- name: Sonar Scanner
uses: ./.github/actions/sonar-cloud
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

lint:
needs: small_tests
Expand Down

0 comments on commit f86a1d3

Please sign in to comment.