Running Automated Tests
The page demostrates the mutliple ways to run the automated functional tests for the API
Running the Functional Tests
Run the following commands in the elentra-1x-api
directory.
Running all the tests:
composer test:unit
Testing all the tests for a specific class:
composer test:unit tests/Functional/Portfolio/Http/PortfolioControllerTest.php
Alternatively, run all functional tests for a specific controller by typing the name of the test class. This will run all unit test classes matching the specified pattern.
composer test:unit:single PortfolioController
Running a single functional test, specify the method name:
composer test:unit:single portfolio_get_method_groups_returns_200
Last updated