4 links
tagged with testing
Click any tag below to further narrow down your results
Links
Rémy Duthu shares a simple method to facilitate writing unit tests by identifying three key elements: dependencies, inputs, and outputs. This approach helps him transition from "feature mode" to "testing mode," providing clarity on what to test and improving the testing process overall. He emphasizes that this small mental reset can enhance focus and reduce guesswork in test creation.
The article provides a comprehensive guide on organizing tests in Rust, highlighting the importance of testing to identify and fix bugs before deployment. It covers various testing methodologies, including unit tests, integration tests, and documentation tests, while emphasizing best practices for effective test organization and execution.
The article discusses the author's experience with AI-based coding, emphasizing a collaborative approach between human engineers and AI agents to enhance code quality and productivity. Despite achieving significant coding throughput, the author warns that the increased speed of commits can lead to more frequent bugs, advocating for improved testing methods to mitigate these risks.
The article discusses the importance of separating business logic from side effects in code by following the functional core and imperative shell pattern. This approach enhances code testability, maintainability, and adaptability by allowing pure functions to handle the core logic while external operations are managed separately. An example illustrates how to refactor messy code into this structured format for better clarity and reusability.