Page 1 of 1

about common_test_methods

Posted: Mon Mar 25, 2024 8:39 am
by sangk82
Hi.
I'm on Windows11, vscode esp-idf.
When I tried to run examples like ws_echo_server or https_server_simple, there are python files as pytest_ws_server_example.py, pytest_https_server_simple.py.

in that files,

Code: Select all

import pytest
from common_test_methods import get_env_config_variable
from pytest_embedded import Dut
the problem is " common_test_methods ".
it can't find "common_test_methods" and causes error.
I installed commonmethods but it doesn't work.
how can I install or do something for this error.

thank you.

Re: about common_test_methods

Posted: Wed May 01, 2024 10:21 pm
by boaterly
The common_test_methods module can be found in your IDF installation.

For 5.2.1 it can be found in: esp-idf-v5.2.1\tools\ci\python_packages

Re: about common_test_methods

Posted: Wed May 22, 2024 3:55 pm
by Sansveni
I see common_test_methods.py in the directory you mentioned...what needs to be done to install this as a module?