-
Couldn't load subscription status.
- Fork 138
Testing
This document attempts to capture guidelines and expectations for testing in swift-apis.
All public functionality should be tested to ensure correct behavior is maintained over time.
Unit tests should be written such that they test the expected functionality and to minimize additional dependencies. This helps guide maintainers as to the likely cause of the regression, and in practice ensures tests are reliable (not flaky).
In order to keep development velocity high, aim for tests to take no more than a second or two, and ideally take only a few milliseconds.
While performance is extremely important, for now we do not have effective infrastructure for benchmarking. Stay tuned for updates!