apache / netbeans

Apache NetBeans
https://netbeans.apache.org/
Apache License 2.0
2.63k stars 841 forks source link

Cannot run multiple test files with PHPUnit #5880

Open junichi11 opened 1 year ago

junichi11 commented 1 year ago

Apache NetBeans version

Apache NetBeans 17

What happened

Only the first item is run when we select multiple test/tested files.

How to reproduce

Steps :

  1. Create a New Project: "File > New Project..."
  2. Select "Samples > PHP > Calculator - PHPUnit Sample Application"
  3. Edit composer.json: "phpunit/phpunit": "~8" to "phpunit/phpunit": "~9"
  4. Read readme.html (Requirements) then install PHPUnit
  5. Add tested and test files.: e.g. Calculator2, Calculator2Test (copy Calculator* and rename to Calclulator2*)
  6. Select CalculatorTest and Calculator2Test (or Calculator and Calculator2)
  7. Run > Run File (or Run > Run Tests)
  8. The first selected file is run

Did this work correctly in an earlier version?

No / Don't know

Operating System

Ubuntu 22.04

JDK

OpenJDK 11.0.18

Apache NetBeans packaging

Apache NetBeans provided installer

Anything else

No response

Are you willing to submit a pull request?

No

KacerCZ commented 1 year ago

@junichi11 It will be possible to pass multiple files/directories as command line arguments in PHPUnit 10.4. See https://github.com/sebastianbergmann/phpunit/pull/5462