The four main parachutes of SpaceX"s Crew Dragon slow the capsule down after its in-flight abort test.

SpaceX completed its last major test before flying astronauts to space on Sunday, in a critical high-speed mission that lasted mere minutes.

Launched on top of a Falcon 9 rocket from NASA's Kennedy Space Center, the company conducted a test of its Crew Dragon capsule called in-flight abort.

"Overall, as far as I can tell thus far, this was a picture perfect mission," SpaceX CEO Elon Musk said in a press conference after the test. "I'm super fired up; this is great."

It's a crucial milestone for Musk's space company, as it will be key in determining whether NASA certifies the company's capsule to begin flying the agency's astronauts.

"Another amazing milestone is complete," NASA Administrator Jim Bridenstine said. "Congratulations to SpaceX and the entire NASA team on this final major flight milestone that we needed to accomplish."

The in-flight abort test is designed to mimic a real launch but with an important difference: SpaceX triggered Crew Dragon's emergency escape system during the most intense part of the launch.