It is always advised to tell current and previous partners if you test positive for any STI. This is to prevent onward spread of infection. It also helps ensure these partners do not get any complications from infection. How far back you go will depend on the infection but your doctor will recommend the next steps. Notifying partners is a public health duty. However, you are under no obligation to do it except in certain very rare circumstances.