I need to access current test suite Directory path inside the test code. So as to access some files in the test suite directory:
Example:
/home/stu/myproj/pytest
|_test_abc.py
|_perf.sh
|_conftest.py
I need to get the path of perf.sh(/home/student/pytest/) inside the test_abc.py. Since i do not know from which directory py.test command will be run, and the user can move(git clone) myproj to any directory. I can't use hardcoded path.
since the test suite directory will be passed as parameter , is there a way access this directory path and use it inside my test code (test_abc.py).