Leak tests

If I write a C library that includes the Python interface, is it normal to just write unit tests for functions, etc. in Python interface? Assuming the Python interface is complete, this should mean that the C code is working.

Basically I'm lazy in that the Python unit test requires almost zero effort.

thanks, -nick

+3
source share
4 answers

Tests through the Python interface will be useful acceptance tests for your library. However, they will not be unit tests.

, , . !

, Python , ++ ( C, , !).

+5

, Python, . , C , " , " - , .

, , .

+1

.

, Python- (,?) C, Pythonic-, , unit test Python, C, .

0

Python. , , , Python C.

  • , Python. , Python C.
  • Python C, , C, : , Python, .
    • 10 Python, 10 , unit test, C, , 10 . Python.
    • Python , C, reset
0

Source: https://habr.com/ru/post/1755616/


All Articles