Integration Tests

If you want to test your library as a client, use an integration test.

Create a .rs file under tests/:

  1. use my_library::init;
  2. #[test]
  3. fn test_init() {
  4. assert!(init().is_ok());
  5. }

These tests only have access to the public API of your crate.