Re: Potential adoption of run-tests.php replacement
| From: | Stanislav Malyshev | Date: | Tue, 30 Jan 2018 22:26:32 +0000 |
| Subject: | Re: Potential adoption of run-tests.php replacement | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-101736@lists.php.net to get a copy of this message | ||
Hi!
> For instance, it is painful to work with tests in PHP source tree when they are called
> 001.phpt, 002.phpt and so on - you need to open each file and read it to see what it intends to
> test. My tool uses file names instead, which makes browsing source tree with tests more productive
> and makes --TEST-- section redundant (simply ignored).
I think --TEST-- should absolutely be supported. Filename is not nearly
enough to properly describe the content of the test. Something like
"Test whether foo(bar($baz)) crashes if called more than twice (bug
#1234)" is not going to be captured in a filename. Filenames and
informative descriptions are not the same thing.
I'll look more into what other requirements are needed (one suggestion
would be try to keep option compatibility with the old tool if possible,
so people could use their old habits) and write later, but I think
supporting proper test descriptions would definitely be one of them.
--
Stas Malyshev
smalyshev@gmail.com