elonmallin / vscode-phpunit Goto Github PK
View Code? Open in Web Editor NEWVSCode extension for phpunit.
License: MIT License
VSCode extension for phpunit.
License: MIT License
I don't see a way to cancel the current test(s) in progress.
For example: Some tests require that I connect to a VPN but I may forget in advance.
Then I must wait for the tests to time out which could take a while.
If I connect to the VPN and start a new set of tests, the output of the previous tests may interject into the output and cause confusion about what has been successful or failed.
A button on the 'Output' pane, or a hotkey to stop currently running tests would be helpful.
Thank you for the truly essential plugin!
I've grown quite fond of using Ctrl + Alt + T to immediately run the test function I'm working on or the whole file, right within my development environment. I can tell you that my "T" key was wearing down from all the use it was getting.
This worked great all the way through yesterday evening - September 10.
This morning, Ctrl+Alt+T opens the command drop-down list and asks me to run my test class. If I hit Enter or click it, nothing happens.
This is the same behavior as if I hit Ctrl+Shift+P, then go to PHPUnit Test. It simply won't run tests within the editor any more. :(
I've tried reinstalling the package and restarting VSCode to no avail.
Any advice would be appreciated! Thanks!
I need to run my unit tests from a virtual machine. I managed to get this extension to use the vagrant installation of PHPUnit by setting the phpunit.execPath
to the following:
vagrant ssh -- /srv/api/vendor/bin/phpunit
but the path of the file I'm testing is relative to the host PC, and is not correct for my VM.
It would be great if I could specify path mapping.
Hi, since you've been away I've forked the extension to fix my two suggestions and I added two additional commands - "Test Directory [2]" and "Test Directory [3]" which work the same way as "Test Directory", but respectively 2 and 3 levels up from the current file.
I could PR them if you're okay with this or you can do them yourself, but they are really useful since I usually have a pretty deep directory structure for tests - if a class has more tests I tend to split them into separate files and put them in a folder with the name of the class. And so if I want to run all the tests from the class' namespace, I need a filter that is 2 directories up, not one.
I hope that this makes sense.
This cost me a considerable amount of time to figure out.
I was trying to use phpunit.phar and added the path to the configuration. Spawning the process failed so I decided to dig deeper. Long story short:
"phpunit.execPath": "php", // path to php or php command
"phpunit.args": [
"C:\\php\\phpunit-6.4.4.phar" // path to phpunit.phar
],
did the trick! (using Win10 but should apply to any OS)
Would be nice to add some kind of annotation to the setup instructions.
cheers
The Testrunner extension scans the whole file System for tests not only my workspace. I´s super slow and not what I would expect. Also warning that duplicate ID files are available.
Should only scan in workspace for tests
glob error [Error: EACCES: permission denied, scandir 'c:\Users\Christopher\AppData\Local\Microsoft\WindowsApps\SpotifyAB.SpotifyMusic_zpdnekdrzrea0\Spotify.exe'] {
errno: -4092,
code: 'EACCES',
syscall: 'scandir',
path: 'c:\Users\XXX\AppData\Local\Microsoft\WindowsApps\SpotifyAB.SpotifyMusic_zpdnekdrzrea0\Spotify.exe'
}
…
This is what it looks like on my machine. I´ve used the standard configs (settings)
Environment | Values |
---|---|
Extension version | 2.0.76 also older versions like v2.0.7.0 |
Operating system | Windows 10 Pro |
Notice how the results of your entire test suite are not updated/reported.
It seems that the --testsuite
argument value (the testsuite name) isn't put in quotes, which is somehow leading to the results not being shown in VSCode. See output below. Running individual tests works fine. Renaming the testsuite to "testRepro" fixes the issue.
All the tests that are found by VSCode are updated (e.g. the result of the test is being shown both inline in code (in the case of errors) and in the Testing window).
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
bootstrap="./vendor/autoload.php">
<testsuites>
<testsuite name="test repro">
<directory>tests</directory>
</testsuite>
</testsuites>
</phpunit>
> php -d display_errors=on "<my path>\vendor\bin\phpunit" -c phpunit.xml --teamcity --colors=never --testsuite test repro
PHPUnit 10.5.2 by Sebastian Bergmann and contributors.
Runtime: PHP 8.1.2
Configuration: <my path>\phpunit.xml
Unexpected: test 'testAbc' has started (but was not listed in Test Window)
Unexpected: test 'testAbc' has passed (but was not listed in Test Window)
Unexpected: test 'testGhi' has started (but was not listed in Test Window)
Unexpected: test 'testGhi' has passed (but was not listed in Test Window)
Environment | Values |
---|---|
Extension version | v4.12.0 |
Operating system | Windows 11 |
PHPUnit | 10.5.2 |
VSCode | 1.84.2 |
@elonmallin For php this aspect is still vacant.
https://marketplace.visualstudio.com/items?itemName=hbenl.vscode-test-explorer
Hi @elonmallin I can't seem to get the phpunit config to get loaded when running the tests via docker-compose commands. Is there any workaround. It seems to ignore my values from phpunit.args
How to clear output first in the terminal before every test?
Hi,
All of a sudden it looks like tests are no longer running. Is there anything I can do to debug what is happening.
Am I the only one facing problems?
Hope you can help, love the zero config on your extension!
EDIT: I checked the Output window for the extension and it shows nothing, Also checked the Log(Extension Host) filter but also nothing for this extension.
Regards Gijs
Hi,
I'm running on Windows 10 and configured the extension as suggested, e.g. execPath
is pointing where it should be...
But when I run phpunit
command no tests are run.
You can see from the screenshot below that the exact command works on the build-in command line.
Anyone else with Win10 having this issue?
How to bind keyboard shortcut for entire folder?
something like
{
"key": "ctrl+t",
"command": "phpunit.Test",
"when": "editorTextFocus"
},
but for entire folder?
Hi,
I'm trying to use this for my CakePHP project.
My config looks like this:
{
"phpunit.execPath": "C:\\wamp\\bin\\php\\php5.5.12\\php.exe vendor\\phpunit\\phpunit\\phpunit",
"phpunit.args": []
}
When I try to run a test, the output panel in VSCode has the following added to it:
C:\wamp\bin\php\php5.5.12\php.exe vendor\phpunit\phpunit\phpunit --filter testCannotViewCircleWithEmptyUserId ./tests/TestCase/Controller/CalendarControllerTest.php
Then nothing further is outputted. If I open Command Prompt in my project directory and run the same command my tests run.
I've seen the other similar issues and tried what they suggested but still have this issue. (I restarted VSCode without any change, and I can't use phpunit.bat because that applies to the PHPUnit supplied with xampp, but not the one supplied with CakePHP.
Help would be greatly appreciated, thanks!
Quite often while testing and TDD in general we use test the nearest cmd+shift+p
and you get the options PHPUnit Test Nearest.
Thanks to the feature this extension provides. It saves a ton of time.
However it fails to test when it comes to the class level. Also note that the methods are only recognised only when the method scope is public
.
The failure to pick the immediate class is resolved in the PR #38
Hi,
I installed PHPUnit, added this to my config file :
"phpunit.php": "E:\\easyPhp\\eds-binaries\\php\\php713vc14x86x181021165540\\php.exe",
"phpunit.phpunit": "E:\\dev\\third-party-libs\\PHPUnit\\phpunit-7.4.3.phar",
"phpunit.args": [
"--configuration",
"./phpunit.xml.dist"
]
I created a test class :
<?php
namespace wcf\data\siraca\participation;
// use PHPUnit\Framework\TestCase;
class ParticipationOrganizerTest extends \PHPUnit_Framework_TestCase
{
public function testTest()
{
$this->assertTrue(true);
}
}
I select the method, CTRL+SHIFT+P, execute command PHPUnit Test... and nothing happens, no error, no console output...
Did I miss something ?
"phpunit.args": [
"--testdox"
],
Executing task: /some/path/vendor/bin/phpunit' --testdox --colors=always '/some/path'
Rerun last test
Executing task: /some/path/vendor/bin/phpunit' --testdox --colors=always --testdox --colors=always '/some/path'
Rerun last test
again. --testdox --colors=always
are added again.The arguments for color and testdox to not be appended every time.
Environment | Values |
---|---|
Extension version | 4.1.1 |
Operating system | Windows 10 |
I really enjoy using your extension!
Would you mind if I PR'd this?
Hi,
Thanks for creating great plugin. I have a question.
After I installed the plugin, I cannot perform the "run build task" command in my vscode anymore, it's just fetching constantly as shown in picture:
Can you please check?
Here is my vscode info:
Version: 1.77.3
Commit: 704ed70d4fd1c6bd6342c436f1ede30d1cff4710
Date: 2023-04-12T09:19:37.325Z (3 wks ago)
Electron: 19.1.11
Chromium: 102.0.5005.196
Node.js: 16.14.2
V8: 10.2.154.26-electron.0
OS: Darwin x64 21.6.0
Sandboxed: Yes
Thanks,
Q.
First of all thank you for this package, it looks very promising.
Currently i'm a ST3 user, and i use a package for phpunit. It has great features like running the nearest test, running the whole file, all the tests or the last test ran. It also has a nice way of discovering the phpunit executable if you have the composer option enabled, so you don't have to make a specific configuration for each specific project. You could use some features that the sublime text package has to improve or make this one more robust.
Hi, i think that the title is self explained about the problem that i´m was talking.
The error occour when use "F1" and select "PHPUnit Test" in a directory with spaces on the name.
Well... i´m opened the plugin source code and spend an hour in debug and i guess that i´ve found how to resolve this issue:
I think that this will resolve this case.
:)
In phpunittest.ts file, inside function resolveContextArgs, before return args;
public async resolveContextArgs(type: RunType, config): Promise<string[]> {
...
if (args.length > 0) { // new
args[0] = "'" + args[0] + "'"; // new
} // new
return args;
}
./vendor/phpunit/phpunit/phpunit --configuration ./tests/phpunit_all.xml
c:\Data\git\ANGEL\tests\Unit\Modules\Frontend\Controllers\CountryControllerTest.php
is shown in the output, but it won't run.
When I copy and paste it into the terminal window, it still won't run.
I have to add php before it to make it run.
So I did that in the configuration, and now I see that in the output window, but it still doesn't fire anything in the terminal window. How can I solve it?
Hi,
I'm creating a mirror issue related to: microsoft/vscode#39478
Extension | Author (truncated) | Version |
---|---|---|
azuretoolsforvscode | bra | 1.3.0 |
xml | Dot | 1.9.2 |
phpunit | ema | 2.1.1 |
php-debug | fel | 1.12.1 |
crane | Hvy | 0.3.8 |
azure-functions-tools | joh | 0.3.1 |
format-indent | Kas | 1.3.0 |
vscode-gutter-preview | kis | 0.12.2 |
start-git-bash | McC | 1.2.1 |
mssql | ms- | 1.2.1 |
PowerShell | ms- | 1.5.1 |
azurerm-vscode-tools | msa | 0.3.7 |
okazukiplantuml | oka | 0.2.2 |
emoji | Per | 0.0.3 |
vscode-docker | Pet | 0.0.22 |
Steps to Reproduce:
Reproduces without extensions: No
I'm assuming the phpunit extension v2.1.1 has a problem.
My assumption is based on the fact that I also tried doing just "ls" (with extensions on) and scrolling back and forth and the problem does not manifest itself.
Please let me know if you need more info....
Regards,
Profidocs
Is running phpunit installed in a Vagrant box from the host machine supported?
For my sins, I'm using an older version of PHPUnit. I've noticed that problems aren't always picked up.
This output marks a problem correctly:
PHPUnit 5.7.27 by Sebastian Bergmann and contributors.
...F.......... 14 / 14 (100%)
Time: 652 ms, Memory: 8.00MB
There was 1 failure:
1) SilverStripe\Config\Tests\Transformer\YamlTransformerTest::testNoNameStatement
Failed asserting that false is true.
/Users/samminnee/Projects/silverstripe-config/tests/Transformer/YamlTransformerTest.php:183
FAILURES!
Tests: 14, Assertions: 23, Failures: 1.
Generating code coverage report in Clover XML format ... done
The terminal process "/bin/bash '-c', ''/Users/samminnee/Projects/silverstripe-config/vendor/bin/phpunit' --colors=always '/Users/samminnee/Projects/silverstripe-config/tests/Transformer/YamlTransformerTest.php''" terminated with exit code: 1.
Terminal will be reused by tasks, press any key to close it.
The failure is linked as a problem
But this output does not:
> Executing task: '/Users/samminnee/Projects/silverstripe-config/vendor/bin/phpunit' --colors=always '/Users/samminnee/Projects/silverstripe-config/tests/Transformer/YamlTransformerTest.php' <
PHPUnit 5.7.27 by Sebastian Bergmann and contributors.
...F.......... 14 / 14 (100%)
Time: 734 ms, Memory: 8.00MB
There was 1 failure:
1) SilverStripe\Config\Tests\Transformer\YamlTransformerTest::testNoNameStatement
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'blahy'
+'blah'
/Users/samminnee/Projects/silverstripe-config/tests/Transformer/YamlTransformerTest.php:184
FAILURES!
Tests: 14, Assertions: 23, Failures: 1.
Generating code coverage report in Clover XML format ... done
The terminal process "/bin/bash '-c', ''/Users/samminnee/Projects/silverstripe-config/vendor/bin/phpunit' --colors=always '/Users/samminnee/Projects/silverstripe-config/tests/Transformer/YamlTransformerTest.php''" terminated with exit code: 1.
Terminal will be reused by tasks, press any key to close it.
No problems are linked
The failure is linked as a problem
In VS code i want to be able to add a key binding for running the tests without having to type it in every time
// Place your key bindings in this file to overwrite the defaults [ { "key": "ctrl+f8", "command": "phpunit", "when": "editorTextFocus" }]
I tried that but it does not work. How would i do it?
On Linux trying to launch phpunit on specific file fails because of phpunit
is launched with wrong path.
For example trying to test ./plugins/tests/test.php
inside myproject
folder
vendor/bin/phpunit .plugins/tests/test.php
Cannot open file ".plugins/tests/test.php".
It miss /
after .
i.e. ./plugins/tests/test.php
.
It worked well until 1.5 release.
I tried setting a custom PHPUnit path like this in my workspace settings (.vscode/settings.json file in the root of my project):
"phpunit.phpunit": "docker exec -it MY_CONTAINER_NAME php vendor/bin/phpunit"
However, the PHPUnit extension doesn’t seem to be using this path, as the tests fail instantly with this header output:
Running phpunit with driver: Composer
./vendor/bin/phpunit ./tests/unit/Domain/Report/Model/CategoryTest.php --filter testCanCreateTopLevelCategory --no-logging
PHPUnit 7.5.2 by Sebastian Bergmann and contributors.
The second line looks like the extension is still trying to run PHPUnit locally from my machine, using the path ./vendor/bin/phpunit.
Is there anything else I need to configure to get this working with my Docker container? As it also says driver: Composer
, so not sure if that needs configuring somewhere?
Operating system: Windows 10
PHPUnit version: 8.0.6
Whenever I run a test, I receive the following response from the terminal:
> Executing task: c:/path/to/project/vendor/phpunit/phpunit/phpunit c:/path/to/project/tests/Unit/UnitTest.php --filter testExample <
'c:/path/to/project/vendor/phpunit/phpunit/phpunit' is not recognized as an internal or external command,
operable program or batch file.
The terminal process terminated with exit code: 1
Terminal will be reused by tasks, press any key to close it.
Running the Executing task command prepended with php
works, the terminal doesn't seem to recognize the file as being PHP.
I have Nushell set as my default shell in VS Code on Windows. When I run a test, I see the following:
* Executing task: phpunit.bat --colors=always 'c:/Users/Charles/Dev/Exercism/php/hamming/HammingTest.php'
Error:
× The system cannot find the file specified. (os error 2)
* The terminal process "C:\Users\Charles\scoop\shims\nu.exe /d /c phpunit.bat --colors=always 'c:/Users/Charles/Dev/Exercism/php/hamming/HammingTest.php'" terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.
If I manually run the following command, it works:
cmd.exe /d /c phpunit.bat --colors=always 'c:/Users/Charles/Dev/Exercism/php/hamming/HammingTest.php'
The extension works fine if I have Command Prompt, PowerShell, or Git Bash set as my default. Would it be be possible to force use of cmd.exe or detect if nushell is default?
The following commands work:
Executes and keeps nu
running:
C:\Users\Charles\scoop\shims\nu.exe --execute 'phpunit.bat --colors=always "c:/Users/Charles/Dev/Exercism/php/hamming/HammingTest.php"'
Executes and exits nu
after finished running:
C:\Users\Charles\scoop\shims\nu.exe --commands 'phpunit.bat --colors=always "c:/Users/Charles/Dev/Exercism/php/hamming/HammingTest.php"'
Note, I don't need the full path to nu.exe
in the because I have it on my PATH.
It will be useful to be able to configure where code lens is enabled in php files. Not all folders with tests start with the text test
. They may end with tests
as well or have some other naming rule.
I can PR this.
After the v4.1.0 the --colors=always option started to be default. At my config I used to use the phpunit.colors config setted as --colors=always without problems. Now, every time that I rerun some phpunit test one more "--color-always" is added to the console output.
The console shouldn't modify its output, like it was at previous versions. You can fix it by removing the --color-always setted in your phpunit.colors config (I just did it and works well)
settings.json
"phpunit.command": "docker-compose exec php",
"phpunit.phpunit": "vendor/bin/phpunit",
"phpunit.paths": {
"${workspaceFolder}": "/var/www/app"
}
Just an observation: I use the extension with docker
Environment | Values |
---|---|
Extension version | v4.1.0 |
Operating system | Ubuntu 18.04 |
Hello,
I saw there is already an issue concerning spaces in the path for the resource file but I am having this issue too. Is there a way I would be able to configure this correctly?
This here is the output when I try to execute a test
> Executing task in folder html: php c:/Users/Stefan Name/Documents/test/phpunit.phar "c:/Users/Stefan Name/Documents/test/test.php" --filter test1 <
Could not open input file: c:/Users/Stefan
The terminal process terminated with exit code: 1
Any ideas how to solve this?
Thank you very much and best regards,
Stefan
A feature in the (seemingly dead) vscode-phpunit-extended
project is the ability to run all tests in a single file. This can be very useful.
Steps to Reproduce:
Automatic tasks seem to interfere with extensions that need to run tasks.
I use a PHPUnit extension (https://github.com/elonmallin/vscode-phpunit) and I find that whenever I launch a workspace that runs automatic tasks, the phpunit commands fail with an error message saying Failed to create terminal for task phpunit: run
.
Turning off the automatic tasks seems to fix the issue.
FYI I also reported this in the vscode repo (microsoft/vscode#70904) because I'm not sure if the issue is with the vscode host or the plugin.
Does this issue occur when all extensions are disabled?: Yes/No
No
When terminal is not in the same place as the output window (e.g. on the right), it is really annoying to have the output window popping up from the bottom and the terminal from the right. I really don't care about the output window as it only shows the command.
It makes sense to have an option that disables that behaviour:
this.channel.show(true);
Run command PHPUnit Rerun Last Test
, each time I use this command, it add another extra --colors=always
argument
Executing task: php 'path/my_project/vendor/phpunit/phpunit/phpunit' --colors=always --colors=always --colors=always --colors=always 'path/my_project/tests/Unit/MyTest.php' --filter test_function
Executing task: php 'path/my_project/vendor/phpunit/phpunit/phpunit' --colors=always 'path/my_project/tests/Unit/MyTest.php' --filter test_function
(single --colors=always only)
Executing task: php 'path/my_project/vendor/phpunit/phpunit/phpunit' --colors=always --colors=always --colors=always --colors=always 'path/my_project/tests/Unit/MyTest.php' --filter test_function
Environment | Values |
---|---|
Extension version | 4.1.1 |
Operating system | Windows 11 |
When I run the extension, it uses php located at 'usr/bin/php' instead of 'usr/local/bin/php'.
This causes an error, because phpunit requires a more recent version of php.
I have tried to set the php path explicitly using "phpunit.php": "/usr/local/bin/php",
, but it has no effect, and still uses the one at 'usr/bin/php'
I have a project where i have 2 php libraries with their own sets of tests. I have different phpunit.xml files for them, located in the parent folder of each test suite.
Is there a variable I can use, to point to the phpunit.xml file using a path relative to the test suite? Something like this :
"phpunit.args": [
"--configuration", "${testSuite}/../phpunit.xml"
]
First off, this is an excellent extension. I love how easy it is to run individual tests via cmd + shift + P
.
There is a feature in the Golang extension which I feel would be great to incorporate into this extension to make running tests even easier. Specifically, there is a code lens that enables you to run tests right from the source code files as show in the image below:
I'm not positive, but it seems that the code at https://github.com/Microsoft/vscode-go/blob/master/src/goRunTestCodelens.ts is where the magic happens in the Golang extension. Anyways, I thought it would be worth posting here for feedback as to whether this would be useful, and if so, possible to implement in this extension.
phpunit command produces only this output
phpunit --filter testListUsers ./tests/AppBundle/Controller/UserControllerTest.php
Without any additional information.
Config project/.vscode/settings.json
{
"phpunit.execPath": "./vendor/bin/",
"phpunit.args": [
"--configuration", "./phpunit.xml.dist"
]
}
Even if i replace relative path with full path same result.
composer require phpunit/phpunit
"vendor/bin/phpunit"
in the build in terminalPHPUnit Test
> Executing task: php 'c:/PATH_TO_PROJECT_DIRECTORY/vendor/phpunit/phpunit/phpunit' --colors=always 'c:/PATH_TO_PROJECT_DIRECTORY/tests/unit/SampleTest.php' --filter public <
Could not open input file: 'c:/Users/olaf/workspace/phpunit_example/vendor/phpunit/phpunit/phpunit'
The terminal process "C:\WINDOWS\System32\cmd.exe /d /c php 'c:/Users/olaf/workspace/phpunit_example/vendor/phpunit/phpunit/phpunit' --colors=always 'c:/Users/olaf/workspace/phpunit_example/tests/unit/SampleTest.php' --filter public" terminated with exit code: 1.
Terminal will be reused by tasks, press any key to close it.
Unit tests should be run as when invoked from terminal's command line.
The single quotes around the executable and the file name seem to be interpreted as part of the filename.
When I run php "c:/PATH_TO_PROJECT_DIRECTORY/vendor/phpunit/phpunit/phpunit" --colors=always "c:/PATH_TO_PROJECT_DIRECTORY/tests/unit/SampleTest.php" --filter public
- i.e. with double quotes to delimit the file names- phpunit is invoked as expected.
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
bootstrap="vendor/autoload.php"
colors="true"
verbose="true"
stopOnFailure="true">
<testsuites>
<testsuite name="Test suite">
<directory>tests</directory>
</testsuite>
</testsuites>
</phpunit>
Related issue #37 (Spaces in file path in windows 10)
Seems the above issue was fixed for running the phpunit command initially, however the configuration phpunit.xml file is encountering the same issue, as can been seen in the log output, the configuration file is not enclosed with quotes.
Running individual tests with files open does work properly.
Run Test Suite in a project in Windows 10 that has a space in the absolute file path.
The test suite does prompt to choose which tests to initially run;
however after selecting any option, the error below shows and the test fails to run.
The test should run successfully
> Executing task: php 'c:/Users/{user}/Documents/GIT/Path/To Foo/Bar/vendor/phpunit/phpunit/phpunit' --colors=always --colors=always --colors=always -c c:/Users/{user}/Documents/GIT/Path/To Foo/Bar/phpunit.xml <
PHPUnit 9.2.5 by Sebastian Bergmann and contributors.
Cannot open file "Foo/Bar".
The terminal process terminated with exit code: 1
Terminal will be reused by tasks, press any key to close it.
Environment | Values |
---|---|
Extension version | 4.1.0 |
Operating system | Windows 10 |
HI @elonmallin !
Could you please cut a release of this extension? I would like to use envVars
but it is not available in the most recent version on the marketplace.
Thanks in advance 🙇
'testAthenticatedUserCanIndex' --configuration=api-rest/phpunit.xml --configuration=api-rest/phpunit.xml...
'testAthenticatedUserCanIndex' --configuration=api-rest/phpunit.xml...
| Extension version | 4.16.1 |
| Operating system | Mac OS 12.6.7 |
Create a test method that has argument type hint in the form of array|(ArrayAccess&Countable&Traversable) $parentVisibleToRoles,
There is no "Run test" link over the method name.
A "Run test" link
It appears that the php-parser
library does not support PHP 8 features.
Environment | Values |
---|---|
Extension version | 4.16.1 |
Operating system | Windows 11 23H2 |
php vendor/bin/paratest --testsuite=suite --configuration=phpunit.xml --filter=^.::(className)( with data set .)?$ className.php --colors=never --teamcity -f
**The "-f" option does not exist. **
Without "phpunit.phpunit": "vendor/bin/paratest" on settings doesn't add -f flag
Execute test
Hello,
I am running ubuntu 14.04,
And have followed the documentation to install it and used the two example files php unit has,
But it not running any tests.
All i get is this in the output
/usr/local/bin/phpunit --configuration ./phpunit.xml.dist ./tests/MoneyTest.php This version of PHPUnit requires PHP 5.6; using the latest version of PHP is highly recommended.
Any help?
Please let me know if you need any information.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.