Postman - running specific tests for specific requests

I have about 100 requests in a collection, 20 of them have the same code with tests in the “Post-res” tab, 40 other requests shared different code with tests in “Post-res”, the rest of the requests similarly. I am looking for a solution that will help me not to repeat the code with tests in the post-res tab for certain requests. Is there any way to put the code with tests and run it only for specific requests? That is, we have one code with tests for 20 requests, another code with tests for 40 requests. Thanks for help <3

Hey @research-specialist3 :wave:t2:

Welcome to the Postman Community :postman:

Are the requests within Folders?

You could add that test code at the Folder level and only run that against the requests within that Folder.

I don’t know anything about the structure of your Collection so I’m just presenting that as an option.