Skip to content

Commit

Permalink
Delete Greenness.
Browse files Browse the repository at this point in the history
  • Loading branch information
schmonz committed Jun 28, 2024
1 parent 62e397f commit e84237c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 21 deletions.
8 changes: 0 additions & 8 deletions src/main/kotlin/com/schmonz/greencently/Greenness.kt

This file was deleted.

15 changes: 2 additions & 13 deletions src/main/kotlin/com/schmonz/greencently/listener/JUnit5Listener.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.schmonz.greencently.listener

import com.schmonz.greencently.Greenness
import com.schmonz.greencently.Timestamp
import com.schmonz.greencently.planner.JUnit5Planner
import com.schmonz.greencently.summary.JUnit5Summary
Expand Down Expand Up @@ -29,18 +28,8 @@ class JUnit5Listener : TestExecutionListener {
}

private fun judgeResultsOfAllTests(testPlan: TestPlan) {
if (Greenness(
JUnit5Summary(
testPlan,
anyTestsRed,
anyTestsGreen
),
JUnit5Summary(
JUnit5Planner(null).prepareTestPlan(),
anyTestsRed = false,
anyTestsGreen = false
)
).isTotal()
if (JUnit5Summary(testPlan, anyTestsRed, anyTestsGreen) ==
JUnit5Summary(JUnit5Planner(null).prepareTestPlan(), anyTestsRed = false, anyTestsGreen = false)
) {
Timestamp("junit5").setToNow()
}
Expand Down

0 comments on commit e84237c

Please sign in to comment.