apart from scatterplots, is there a formal statistical test for linearity for two continuous variables?

Someone suggested using Analzye -> Compare means -> Means -> under options, test for linearity?

Is that the best test for this purpose?

Many thanks!