Skip to content

Commit

Permalink
run "chrome" task instead of just all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
asolntsev committed Dec 24, 2024
1 parent 716d306 commit 0534052
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Compile
run: ./gradlew testClasses --no-daemon --console=plain
- name: Run tests
run: ./gradlew test --no-daemon --console=plain -Dselenide.headless=true
run: ./gradlew chrome --no-daemon --console=plain -Dselenide.headless=true
- name: Upload test report
uses: actions/upload-artifact@v4
if: always()
Expand All @@ -52,7 +52,7 @@ jobs:
- name: Compile
run: mvn test-compile
- name: Run tests
run: mvn test
run: mvn test -P chrome
- name: Upload test report
uses: actions/upload-artifact@v4
if: always()
Expand Down
10 changes: 5 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,25 +55,25 @@ tasks.withType(Test).configureEach { testTask ->
testTask.useJUnitPlatform()
}

task chrome(type: Test) {
tasks.register("chrome", Test) {
systemProperties['selenide.browser'] = 'chrome'
systemProperties['selenide.headless'] = 'true'
}

task firefox(type: Test) {
tasks.register("firefox", Test) {
systemProperties['selenide.browser'] = 'firefox'
systemProperties['selenide.headless'] = 'true'
}

task ie(type: Test) {
tasks.register("ie", Test) {
systemProperties['selenide.browser'] = 'ie'
}

task edge(type: Test) {
tasks.register("edge", Test) {
systemProperties['selenide.browser'] = 'edge'
}

// You must enable the 'Allow Remote Automation' option in Safari's Develop menu to control Safari via WebDriver.
task safari(type: Test) {
tasks.register("safari", Test) {
systemProperties['selenide.browser'] = 'safari'
}

0 comments on commit 0534052

Please sign in to comment.