I am trying to create a custom component with its unit tests in VS Code. The test cases were visible in the Activity Bar > Testing section at first. Then suddenly the tests have been disappeared as I keep developing the component. I've tried building and flashing the test app. It did built, but no test listed in the test menu.
Here how it looks in the UI: This is how the test menu looks in the terminal output after flashing and monitoring:
Code: Select all
Press ENTER to see the list of tests.
Here's the test menu, pick your combo:
Enter test for running.
Code: Select all
custom_component
├── CMakeLists.txt
├── components
│ └── relay_chn
│ ├── CMakeLists.txt
│ ├── idf_component.yml
│ ├── include
│ │ └── relay_chn.h
│ ├── Kconfig
│ ├── relay_chn.c
│ └── test
│ ├── CMakeLists.txt
│ ├── main
│ │ ├── CMakeLists.txt
│ │ ├── relay_chn_test.c
│ │ └── relay_chn_test_main.c
│ └── sdkconfig.defaults
├── main
│ ├── CMakeLists.txt
│ └── main.c
├── README.md
├── sdkconfig
├── sdkconfig.old
└── unity-app
├── CMakeLists.txt
├── conftest.py
├── dependencies.lock
├── main
│ ├── CMakeLists.txt
│ └── test_app_main.c
├── sdkconfig
├── sdkconfig.defaults
├── sdkconfig.old
└── test_unit_case.py
The public git repo link -> https://gitea.kozmotronik.com.tr/Kozmot ... /relay_chn
What should I do to make the tests appear in the Testing tab of the activity bar? I can share the contents of files, or better can make it a public git repo if required. Any kind of help is highly appreciated.