diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ecf410..d955f92 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ All notable changes are documented in this file using the [Keep a CHANGELOG](http://keepachangelog.com/) principles. +## 3.18.2 - Unreleased + +### Fixed + +- Fix result output footer edge-cases + ## 3.18.1 - 2023-08-16 ### Deprecated diff --git a/res/text-ui-result.sublime-syntax b/res/text-ui-result.sublime-syntax index 41f5fb5..e17cd62 100644 --- a/res/text-ui-result.sublime-syntax +++ b/res/text-ui-result.sublime-syntax @@ -91,7 +91,7 @@ contexts: - match: '^{{cc}}OK, but incomplete, skipped, or risky tests\!{{cc}}$' scope: region.orangish phpunitkit test.footer.ok-but-incomplete-skipped-or-risky.phpunit-result - - match: '^{{cc}}OK, but there are issues\!{{cc}}$' + - match: '^{{cc}}OK, but (?:there are issues|some tests were skipped)\!{{cc}}$' scope: region.orangish phpunitkit test.footer.ok-but-incomplete-skipped-or-risky.phpunit-result push: - match: '^{{cc}}Tests\: \d+, Assertions\: \d+(?:, (?:Deprecations|Errors|Failures|Warnings|Notices|Skipped|Incomplete|Risky)\: \d+)+\.{{cc}}$' diff --git a/tests/syntax_test-text-ui-result b/tests/syntax_test-text-ui-result index a1ab1d6..e633b16 100644 --- a/tests/syntax_test-text-ui-result +++ b/tests/syntax_test-text-ui-result @@ -75,6 +75,30 @@ FF........................ 26 / 26 (100%) Time: 385 ms, Memory: 5.50MB +. 1 / 1 (100%) + +Time: 00:00.626, Memory: 32.00 MB + +.. 2 / 2 (100%) + +Time: 00:00.626, Memory: 32.00 MB + +S 1 / 1 (100%) + +Time: 00:00.626, Memory: 32.00 MB + +SS 2 / 2 (100%) + +Time: 00:00.626, Memory: 32.00 MB + +F 1 / 1 (100%) + +Time: 00:00.626, Memory: 32.00 MB + +FF 2 / 2 (100%) + +Time: 00:00.626, Memory: 32.00 MB + OK (45 tests, 81 assertions) #<- region.greenish phpunitkit test.footer.ok.phpunit-result #^^^^^^^^^^^^^^^^^^^^^^^^^^^ region.greenish phpunitkit test.footer.ok.phpunit-result @@ -104,6 +128,11 @@ Tests: 81, Assertions: 81, Deprecations: 4. #<- region.orangish phpunitkit test.footer.ok-but-incomplete-skipped-or-risky.phpunit-result #^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ region.orangish phpunitkit test.footer.ok-but-incomplete-skipped-or-risky.phpunit-result +OK, but some tests were skipped! +# ^ region.orangish phpunitkit test.footer.ok-but-incomplete-skipped-or-risky.phpunit-result +Tests: 31, Assertions: 41, Skipped: 6. +# ^ region.orangish phpunitkit test.footer.ok-but-incomplete-skipped-or-risky.phpunit-result + FAILURES! #<- region.redish phpunitkit test.footer.fail.phpunit-result #^^^^^^^^ region.redish phpunitkit test.footer.fail.phpunit-result