Skip to content

Latest commit

 

History

History
 
 

test

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Tests

API tests

If you want to run api tests, you must start the http server.

tests case dir: /test/api/

Start server

php bin/swoft http:start
# OR
php bin/swoft http:start -d

Run api tests

php test/run.php -c phpunit.xml --testsuite apiTests

Unit tests

tests case dir: /test/unit/

Run unit tests

php test/run.php -c phpunit.xml --testsuite unitTests

Http tests

tests case dir: /test/httptest/

If you want to run http client tests, you must start the http server.

Run http tests

Can only be run inside phpstorm.

http-client-tests