Hello.
I'm a beginner developer. I want to do a unit test while doing a socket program with c in the centos Linux environment, so I am posting a question like this.
Could you briefly tell me the Unit Test framework and how to use it in the C language environment?
I'm practicing socket programming with Eclipse in CentOS.
When testing the functions for normal operation, It was difficult to create main functions every time, and it was difficult to manage the files of the main functions.
I searched C Unit Test on Google.
http://stackoverflow.com/questions/65820/unit-testing-c-code I was able to find the same article as above.
Among them, I installed a tool called check and followed the document I didn't succeed because of my lack of English, and I need to understand another tool.
Could you please let me know if there is a sample or a document in Korean that I can follow? I would appreciate it more if you could tell me your experience of using it yourself.
c unit-testing centos linux
The one I used recently is the Google test.
The libraries written in c++ had to operate on Windows/Linux respectively, so I tried it as a test framework and it's okay.
Similar to a typical xUnit, you can include gtest.h and write setup test teardown.
https://github.com/google/googletest
572 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
912 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
617 Uncaught (inpromise) Error on Electron: An object could not be cloned
574 Who developed the "avformat-59.dll" that comes with FFmpeg?
© 2024 OneMinuteCode. All rights reserved.