[PR #498] [MERGED] Improve testing with stats and errors per test section #585

Closed
opened 2025-12-30 01:25:29 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/apple/pkl/pull/498
Author: @jjmaestro
Created: 5/16/2024
Status: Merged
Merged: 10/24/2024
Merged by: @bioball

Base: mainHead: improve-testing


📝 Commits (1)

  • 25fd96e Improve testing with stats and errors per test section

📊 Changes

8 files changed (+848 additions, -383 deletions)

View changed files

📝 pkl-cli/src/main/kotlin/org/pkl/cli/CliTestRunner.kt (+4 -1)
📝 pkl-cli/src/test/kotlin/org/pkl/cli/CliTestRunnerTest.kt (+45 -38)
📝 pkl-core/src/main/java/org/pkl/core/runtime/TestResults.java (+276 -149)
📝 pkl-core/src/main/java/org/pkl/core/runtime/TestRunner.java (+84 -37)
📝 pkl-core/src/main/java/org/pkl/core/stdlib/test/report/JUnitReport.java (+45 -22)
📝 pkl-core/src/main/java/org/pkl/core/stdlib/test/report/SimpleReport.java (+72 -27)
📝 pkl-core/src/test/kotlin/org/pkl/core/EvaluateTestsTest.kt (+125 -10)
📝 pkl-gradle/src/test/kotlin/org/pkl/gradle/TestsTest.kt (+197 -99)

📄 Description

Add some basic test stats to the test runner output for both SimpleReport and JUnitReport:

  • number of tests that pass/fail
  • % of success
  • number of assertions within each test that pass / fail

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/apple/pkl/pull/498 **Author:** [@jjmaestro](https://github.com/jjmaestro) **Created:** 5/16/2024 **Status:** ✅ Merged **Merged:** 10/24/2024 **Merged by:** [@bioball](https://github.com/bioball) **Base:** `main` ← **Head:** `improve-testing` --- ### 📝 Commits (1) - [`25fd96e`](https://github.com/apple/pkl/commit/25fd96ed46ad4b14914a4f8e1565156fab1d10bf) Improve testing with stats and errors per test section ### 📊 Changes **8 files changed** (+848 additions, -383 deletions) <details> <summary>View changed files</summary> 📝 `pkl-cli/src/main/kotlin/org/pkl/cli/CliTestRunner.kt` (+4 -1) 📝 `pkl-cli/src/test/kotlin/org/pkl/cli/CliTestRunnerTest.kt` (+45 -38) 📝 `pkl-core/src/main/java/org/pkl/core/runtime/TestResults.java` (+276 -149) 📝 `pkl-core/src/main/java/org/pkl/core/runtime/TestRunner.java` (+84 -37) 📝 `pkl-core/src/main/java/org/pkl/core/stdlib/test/report/JUnitReport.java` (+45 -22) 📝 `pkl-core/src/main/java/org/pkl/core/stdlib/test/report/SimpleReport.java` (+72 -27) 📝 `pkl-core/src/test/kotlin/org/pkl/core/EvaluateTestsTest.kt` (+125 -10) 📝 `pkl-gradle/src/test/kotlin/org/pkl/gradle/TestsTest.kt` (+197 -99) </details> ### 📄 Description Add some basic test stats to the test runner output for both SimpleReport and JUnitReport: - number of tests that pass/fail - % of success - number of assertions within each test that pass / fail --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-30 01:25:29 +01:00
adam closed this issue 2025-12-30 01:25:29 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pkl#585