79440208

Date: 2025-02-14 18:04:23
Score: 2.5
Natty:
Report link

Can I ask why the test needs to access external data? What type of test is it? When you say "external" do you mean outside of your immediate service but inside your org's domain, or do you mean outside of your org's domain?

I'm curious if we can challenge if it's needed at all to fetch external resources -- After spending time developing automated e2e, component, and integration testing, it's best to follow the test pyramid and focus on unit testing first which mock all immediate dependencies. Once you get to a boundary it's best practice to look into contract testing as much as possible.

Ask

  1. Why can't I mock?
  2. If if you have to, then where can I mock? (where's the nearest boundary).
Reasons:
  • Blacklisted phrase (1): Can I ask
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Can I as
  • Low reputation (0.5):
Posted by: baumannalexj