Skip to content

v1.3.2 - Testing Essentials Refinements

Choose a tag to compare

@j-morgan6 j-morgan6 released this 09 Mar 00:49

Changes

Changed

  • testing-essentials — 4 targeted refinements:
    • Setup Chaining section — guidance on composing named setup functions with setup [:func1, :func2] for reusable test context
    • Timestamp Testing section — guidance on relative timestamps instead of hardcoded dates that cause flaky tests
    • Refined async: true rule — replaced one-liner with safe/unsafe categorization (safe: pure functions, changesets, helpers; unsafe: DB contexts, LiveView, Application.put_env)
    • Improved Context Test Skeleton — result bound to variable for further assertions, error case pattern matches changeset and checks errors_on/1

Full Changelog: v1.3.1...v1.3.2