From ee5996e2b66f3cfc91aed068fe4da0f79a37a79d Mon Sep 17 00:00:00 2001
From: Pavel Vetokhin
Date: Sat, 16 Sep 2023 22:11:13 +0300
Subject: [PATCH] Test check failure
---
.github/workflows/solution-sanity.yml | 5 ++---
.../smecalculus/bezmen/data/impl/SepulkaDaoMyBatisTest.java | 4 +++-
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/solution-sanity.yml b/.github/workflows/solution-sanity.yml
index 71117184..74b5601e 100644
--- a/.github/workflows/solution-sanity.yml
+++ b/.github/workflows/solution-sanity.yml
@@ -44,8 +44,7 @@ jobs:
if: ${{ !cancelled() }}
with:
check_name: Unit Test Report
- require_tests: "${{ steps.binaries.outcome != 'success' }}"
+ report_paths: "**/surefire-reports/TEST-*.xml"
+ require_tests: "${{ steps.binaries.outcome == 'failure' }}"
fail_on_failure: true
job_summary: false
- report_paths: |
- **/surefire-reports/TEST-*.xml
diff --git a/apps/foo/src/test/java/smecalculus/bezmen/data/impl/SepulkaDaoMyBatisTest.java b/apps/foo/src/test/java/smecalculus/bezmen/data/impl/SepulkaDaoMyBatisTest.java
index 9fd1a91f..f89fffab 100644
--- a/apps/foo/src/test/java/smecalculus/bezmen/data/impl/SepulkaDaoMyBatisTest.java
+++ b/apps/foo/src/test/java/smecalculus/bezmen/data/impl/SepulkaDaoMyBatisTest.java
@@ -1,11 +1,13 @@
package smecalculus.bezmen.data.impl;
+import static org.assertj.core.api.Assertions.assertThat;
+
import org.junit.jupiter.api.Test;
class SepulkaDaoMyBatisTest {
@Test
void foo() {
- // empty
+ assertThat(false).isEqualTo(true);
}
}