diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c9a6b50..bd4c533 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -12,6 +12,7 @@ on: jobs: tests: strategy: + fail-fast: false matrix: operating-system: - ubuntu-latest diff --git a/src/ExampleClass.php b/src/ExampleClass.php index ecac50e..ea000ed 100644 --- a/src/ExampleClass.php +++ b/src/ExampleClass.php @@ -13,6 +13,8 @@ public function setValue($value) public function getValueSquared() { + throw new \RuntimeException("This is an error"); + return pow($this->value, 2); } diff --git a/tests/ExampleTest.php b/tests/ExampleTest.php index 3feeb35..0018bfd 100644 --- a/tests/ExampleTest.php +++ b/tests/ExampleTest.php @@ -9,5 +9,6 @@ class ExampleTest extends TestCase public function testExample() { $this->assertTrue(true); + $this->fail("This is a message for a faling test"); } }