I had made more than 1 pytest test files I needed it to be convert them to a single exe file

I used pyinstaller for that not able to convert the test cases to .exe file

Even though if some how I will convert it I could not run it via clicking on .exe file as on console I am running it by python -m pytest


So Please help me guys
Is there any way to execute the exe file created by pyinstaller, that like on just clicking the exe file the exe will get execute based on the code mentioned just like on clicking the exe file the code should execute via python -m pytest
Execute pytest via pyinstaller created exe extension file