Rh(D) test

What’s a Rh(D) test? And what does it mean if you tested positive for it during pregnancy?