From 540051b36b84d85b0bdec2769801d4310a4392d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bence=20H=C3=A1romi?= <56651250+benceharomi@users.noreply.github.com> Date: Thu, 26 Jun 2025 11:51:31 +0100 Subject: [PATCH 1/4] ci: testing scenario (coverage check fails -> action unsuccessful -> result commented) --- test/Counter.t.sol | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/Counter.t.sol b/test/Counter.t.sol index 4015f42..8418a54 100644 --- a/test/Counter.t.sol +++ b/test/Counter.t.sol @@ -12,10 +12,11 @@ contract CounterTest is Test { counter.setNumber(0); } - function test_Increment() public { - counter.increment(); - assertEq(counter.number(), 1); - } + // Just for testing + // function test_Increment() public { + // counter.increment(); + // assertEq(counter.number(), 1); + // } function testFuzz_SetNumber(uint256 x) public { counter.setNumber(x); From ea0eb1eebfc1c83346e3eb8b8236fd88f1c2a984 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bence=20H=C3=A1romi?= <56651250+benceharomi@users.noreply.github.com> Date: Thu, 26 Jun 2025 11:55:17 +0100 Subject: [PATCH 2/4] ci: testing scenario (fail comment updated with success comment) --- test/Counter.t.sol | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/test/Counter.t.sol b/test/Counter.t.sol index 8418a54..4015f42 100644 --- a/test/Counter.t.sol +++ b/test/Counter.t.sol @@ -12,11 +12,10 @@ contract CounterTest is Test { counter.setNumber(0); } - // Just for testing - // function test_Increment() public { - // counter.increment(); - // assertEq(counter.number(), 1); - // } + function test_Increment() public { + counter.increment(); + assertEq(counter.number(), 1); + } function testFuzz_SetNumber(uint256 x) public { counter.setNumber(x); From b785447c30ef3a41c6ec377a0b7cad95dfaffbdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bence=20H=C3=A1romi?= <56651250+benceharomi@users.noreply.github.com> Date: Thu, 26 Jun 2025 11:56:35 +0100 Subject: [PATCH 3/4] Revert "ci: testing scenario (fail comment updated with success comment)" This reverts commit ea0eb1eebfc1c83346e3eb8b8236fd88f1c2a984. --- test/Counter.t.sol | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/Counter.t.sol b/test/Counter.t.sol index 4015f42..8418a54 100644 --- a/test/Counter.t.sol +++ b/test/Counter.t.sol @@ -12,10 +12,11 @@ contract CounterTest is Test { counter.setNumber(0); } - function test_Increment() public { - counter.increment(); - assertEq(counter.number(), 1); - } + // Just for testing + // function test_Increment() public { + // counter.increment(); + // assertEq(counter.number(), 1); + // } function testFuzz_SetNumber(uint256 x) public { counter.setNumber(x); From 288e6756ffc7e407eeda7ece806f1f5fb710acca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bence=20H=C3=A1romi?= <56651250+benceharomi@users.noreply.github.com> Date: Thu, 26 Jun 2025 11:57:06 +0100 Subject: [PATCH 4/4] ci: testing scenario (fail comment updated with fail comment (with different %)) --- test/Counter.t.sol | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/test/Counter.t.sol b/test/Counter.t.sol index 8418a54..78c599d 100644 --- a/test/Counter.t.sol +++ b/test/Counter.t.sol @@ -8,18 +8,19 @@ contract CounterTest is Test { Counter public counter; function setUp() public { - counter = new Counter(); - counter.setNumber(0); + // counter = new Counter(); + // counter.setNumber(0); } // Just for testing - // function test_Increment() public { - // counter.increment(); - // assertEq(counter.number(), 1); - // } + function test_Increment() public { + // counter.increment(); + // assertEq(counter.number(), 1); + } + // Just for testing function testFuzz_SetNumber(uint256 x) public { - counter.setNumber(x); - assertEq(counter.number(), x); + // counter.setNumber(x); + // assertEq(counter.number(), x); } }