Preheat oven to 350 degrees. Spray a 9x13 baking dish with cooking spray.
Cook the pasta according to packaged directions. Once cooked, drain the water and allow the pasta to cool for about 5 minutes.
Add the pasta, pesto, quartered tomatoes, and 1 1/2 cups mozzarella cheese to the prepared baking dish. Stir to incorporate and fully combine. Sprinkle the remaining 1/2 cup of mozzarella cheese and parmesan cheese over the top.
Cover the dish with foil (spray nonstick spray on the side of the foil that will be over the cheese topping to avoid the foil from sticking).
Bake covered for 25 minutes or until the dish is cooked through and the cheese is melted. Uncover and cook for 5 additional minutes or until the top is bubbly.