Bilirubin testing is usually one of a group of tests to check the health of your liver. Bilirubin testing may be done to: Investigate jaundice — a yellowing of the skin and eyes caused by high levels of bilirubin. This test is commonly used to measure bilirubin levels in newborns with infant jaundice