Testing
๋ฌ์คํธ์ ์นด๊ณ (cargo)๋ ๊ฐ๋จํ ํ ์คํธ ํ๋ ์์ํฌ์ ํจ๊ป ์ ๊ณต๋ฉ๋๋ค:
- ๋จ์ ํ ์คํธ๋ ์ฝ๋ ์ ๋ฐ์์ ์ง์๋ฉ๋๋ค.
- ํตํฉํ
์คํธ๋
test/
ํด๋๋ฅผ ํตํด ์ง์๋ฉ๋๋ค.
Rust and Cargo come with a simple unit test framework:
- Unit tests are supported throughout your code.
- Integration tests are supported via the
tests/
directory.