Skip to content

test: add unit tests and .clang-format config#10

Merged
Sopwit merged 1 commit intodevfrom
fix/tests-and-format
Mar 6, 2026
Merged

test: add unit tests and .clang-format config#10
Sopwit merged 1 commit intodevfrom
fix/tests-and-format

Conversation

@Sopwit
Copy link
Member

@Sopwit Sopwit commented Mar 6, 2026

Değişiklikler

.clang-format

LLVM tabanlı explicit format config. CI zaten LLVM default kullanıyordu — artık proje root'unda tanımlı.

Unit Testler

  • test_detector: NvidiaDetector sınıf oluşturma, GpuInfo struct defaults, detect/hasNvidiaGpu/isDriverInstalled çağrıları (donanım olmadan çökmeme garantisi)
  • test_monitor: CPU/GPU/RAM monitor construction, start/stop, sinyal geçerliliği, CPU yük aralık kontrolü

CI Güncellemesi

  • BUILD_TESTS=ON ile testler build ediliyor
  • ctest --output-on-failure adımı eklendi
  • qt6-qtbase-private-devel bağımlılığı eklendi

- .clang-format: LLVM tabanlı explicit format config
- tests/CMakeLists.txt: Qt6::Test ile test build altyapısı
- test_detector: NvidiaDetector sınıf/struct testleri (donanım bağımsız)
- test_monitor: CPU/GPU/RAM monitor construction, start/stop, sinyal testleri
- ci.yml: BUILD_TESTS=ON ve ctest adımı eklendi
@Sopwit Sopwit merged commit e38b8cb into dev Mar 6, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant