You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've searched existing issues and found nothing related to my issue.
Describe the feature you want to add
I need a way to ensure that authentication is set up before each test when running individual tests, without duplicating the authentication logic in each test file.
Currently, when running the full test suite, authentication works as expected because it is triggered at the start. However, when I run individual tests in isolation, I need to manually include authentication logic in each request, which leads to unnecessary duplication of code.
Looking for a way from the CLI to have some sort of a --beforeEach flag to run a specific request before every test, as all tests / api endpoints are authenticated.
Mockups or Images of the feature
Example: bruno --beforeEach "POST /auth/login" test/specificTest.js
The text was updated successfully, but these errors were encountered:
I have checked the following:
Describe the feature you want to add
I need a way to ensure that authentication is set up before each test when running individual tests, without duplicating the authentication logic in each test file.
Currently, when running the full test suite, authentication works as expected because it is triggered at the start. However, when I run individual tests in isolation, I need to manually include authentication logic in each request, which leads to unnecessary duplication of code.
Looking for a way from the CLI to have some sort of a
--beforeEach
flag to run a specific request before every test, as all tests / api endpoints are authenticated.Mockups or Images of the feature
Example: bruno --beforeEach "POST /auth/login" test/specificTest.js
The text was updated successfully, but these errors were encountered: