-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[java] [ci] upload test reports for Java example (when running tests on GitHub Actions) #2572
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[java] [ci] upload test reports for Java example (when running tests on GitHub Actions) #2572
Conversation
Now the report can be downloaded during the next 2 weeks from https://github.com/SeleniumHQ/seleniumhq.github.io/actions
👷 Deploy request for selenium-dev pending review.Visit the deploys page to approve it
|
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||||||
until now, we executed only Maven tests. As a result, build.gradle was outdated.
245b2f4 to
236a728
Compare
diemol
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer to see them in a different job.
(probably not needed to run gradle tests with nightly selenium)
done |
User description
Description
Types of changes
Checklist
PR Type
Enhancement
Description
Add Gradle test execution to Java examples CI pipeline
Upload test reports as artifacts for 14 days on failure
Update test file paths to write reports to standard directories
Diagram Walkthrough
flowchart LR A["Java CI Workflow"] --> B["Run Maven Tests"] A --> C["Run Gradle Tests"] B --> D["Test Execution"] C --> D D --> E{"Build Failed?"} E -->|Yes| F["Upload Test Reports"] F --> G["14-day Retention"]File Walkthrough
java-examples.yml
Add Gradle tests and test report uploads.github/workflows/java-examples.yml
./gradlew testcommand to stable release test job./gradlewwith version parameter to nightly Linux/macOS test job./gradlewwith version parameter to nightly Windows test job14-day retention
SavingTest.java
Update PDF output path for test reportsexamples/java/src/test/java/dev/selenium/interactions/SavingTest.java
target/surefire-reports/directory
LoggingTest.java
Update log file path for test reportsexamples/java/src/test/java/dev/selenium/troubleshooting/LoggingTest.java
target/surefire-reports/directory