Background: Helicobacter pylori (H. pylori) infects approximately 50% of the world population. Its infection is associated with gastropathies, extra-gastric digestive diseases, and diseases of other systems. There is a canonical process from acute-on-chronic inflammation, chronic atrophic gastritis (CAG), intestinal metaplasia (IM), dysplasia, and intraepithelial neoplasia, eventually to gastric cancer (GC). H. pylori eradication abolishes the inflammatory response and early treatment prevents the progression to preneoplastic lesions. Methods: the test-and-treat strategy, endoscopy-based strategy, and screen-and-treat strategy are recommended to prevent GC based on risk stratification, prevalence, and patients’ clinical manifestations and conditions. Challenges contain false-negative results, increasing antibiotic resistance, decreasing eradication rate, and poor retesting rate. Present diagnosis methods are mainly based on invasive endoscopy and noninvasive laboratory testing. Results: to improve the accuracy and effectiveness and reduce the missed diagnosis, some advances were achieved including newer imaging techniques (such as image-enhanced endoscopy (IEE), artificial intelligence (AI) technology, and quantitative real-time polymerase chain reaction (qPCR) and digital PCR (dPCR). Conclusion: in the article, we summarized the diagnosis methods of H. pylori infection and recent advances, further finding out the opportunities in challenges.