The present invention relates to a method, and a corresponding device, for testing a radius of curvature and/or for detecting inhomogeneities of a curved X-ray grating for a grating-based X-ray imaging device. The method comprises generating a beam of light diverging from a source point, propagating along a main optical axis and having a line-shaped beam profile. The method comprises reflecting the beam off a concave reflective surface of the grating. A principal axis of the concave reflective surface coincides with the main optical axis and the source point is at a predetermined distance from a point where the main optical axis intersects the concave reflective surface. The method comprises determining whether a projection of the reflected beam in a plane at or near the source point is present outside a central region around the source point, in which an absence of this projection outside the central region indicates that a radius of curvature of the concave reflective surface corresponds to the predetermined distance and/or that the reflective surface is substantially homogeneously curved along a curve formed by the beam impinging on the concave reflective surface.