How to run test cases from a browser in cakephp

I'm new to testing, so please forgive me for this question

In the cakephp manual in the chapter "Creating Tests" you can read

When you created a test case, you can run it by looking at http: //your.cake.domain/cake_folder/test.php (depending on what your particular installation looks like) and click on “Service Test Cases” and then click link to your file.

I do not understand the url and how to apply to my case.

I would like to run the following test file stored at: /app/tests/cases/models/box.test.php

My domain is www.box.local

I don’t understand what URL should I enter? Please enlighten me.

+3
source share
1 answer

The Cake application has two important files in / app / webroot /: index.phpand test.php. Normal requests are processed by a file index.php. To run the tests you must call the file test.php. So, if you usually visit the URL www.box.local/, just go to www.box.local/test.php. If your Cake application is in a subfolder and the usual URL www.box.local/cakeapp/, use www.box.local/cakeapp/test.php.

The actual tests that you run from the interface.

+4
source

Source: https://habr.com/ru/post/1780178/


All Articles