Article From:https://segmentfault.com/q/1010000011712587
Question:
Auto-send validation code – & gt; auto-register – & gt; auto-login, if the process runs down automatically, unit test?
Answer 0:
What unit test do you understand and what unit do you think is the unit?
It can be an integrated test, or an E2E test, but it is certainly not a unit test.
Answer 1:
This is integration testing. Unit testing is simply a function-level test, and in unit testing, network requests are not normally made, and if necessary, mock services are used instead.
Answer 2:
E2E or integration testing
Link of this Article: Automatic Send Verification Code – > Automatic Register – > Automatic Logon, if this process automatically runs down, unit test?