First things first: when we say “weed” or “marijuana” testing, what we’re actually talking about is a THC drug test (THC, of course, being the psychoactive component of marijuana that gives you that “high” feeling).
It’s not possible to answer this question with a sweeping generalization. For one thing, the amount of detectable THC in your system will depend on many factors, such as your biology, dosage, and frequency. To paint a more accurate picture, let’s have a look at how long marijuana can last in different parts of your system in the context of popular THC tests, such as:
Source: https://americanmarijuana.org/how-long-does-thc-stay-in-urine/