Authentication Feature Testing in REST API

Learn how to test the authentication feature in the REST API application.

Test the application

The testing database is already prepared for testing. To create a test, we add a file called api_test.go in the project’s root directory. After creating the file, we add a function called newApp() to create an application for testing.

Get hands-on with 1200+ tech skills courses.