January 2019
Intermediate to advanced
520 pages
14h 32m
English
To run the unit test, run Cargo's test command in the folder of this project. It will start three tests and you will see, in the Terminal, the output of the command:
running 3 teststest tests::test_list_with_client ... oktest tests::test_signup_with_client ... oktest tests::test_signin_with_client ... oktest result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out
All of the tests have passed, but let's check what happens if we change something in the implementation. Let's remove a Mock for the /signin path. The test will print that one test has failed:
running 3 teststest tests::test_list_with_client ... oktest tests::test_signin_with_client ... FAILEDtest tests::test_signup_with_client ... okfailures:---- ...
Read now
Unlock full access