Builds docs before runnings tests.