~/talk

Make Sure Your Tests Fail

Talkat Postman Galaxy 2021 · 2021-02-02..02-04· [testing]
linkedin:vdespa
slides:none on file

Postman tests often pass when they should fail because of concrete mistakes: closing the pm.test call before supplying the assertion function or misusing the shorthand pm.expect leads to silent green results, missing environment variables plus the wrong property produces undefined equals undefined, and running collections with newman can still return exit code zero even when tests log failures. Remedies include using code snippets, switching to test first workflows, mocking endpoints with Postman mock servers, validating schemas with Ajv, and calling pm.fail to force failures.

AI-written summary · about

  1. 0:00Introduction to API testing
  2. 1:22The importance of failing
  3. 4:25When tests don't provide value
  4. 5:39Identifying false positives
  5. 7:43Shandhand syntax pitfalls
  6. 8:52Unexpected test results
  7. 10:20Environment variable issues
  8. 13:05Risks of automated schemas
  9. 16:11CI/CD pipeline blind spots
  10. 17:32Exit code issues in Newman
  11. 18:42Mitigation strategies
  12. 20:10Validating test integrity
  13. 22:03Implementing TDD
  14. 23:11Using mock servers
  15. 24:46Testing the pipeline
  16. 26:47Feature requests for Postman
  17. 27:53Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.