Question: Now is a good time to create a branch. Call this branch TriangleTestingBranch. After you have created that branch, follow these steps: Take a look

Now is a good time to create a branch. Call this branch TriangleTestingBranch. After you have created that branch, follow these steps:
Take a look at include/Triangle.h and lib/Triangle.cpp. These files have the declaration and definition of a Triangle class. There are bugs in the getPerimeter(), getArea(), and getKind()methods. Don't fix them!
Create your test.cpp file within the test folder. You will create unit tests that are part of the TriangleTests group.
Create at least three tests that shouldn't pass because of the bugs. In other words, passing these tests would mean the bugs are fixed.
Create an additional test using EXPECT_DEATH. This test should validate that the code will terminate if invalid input is provided (see the GTest reference for more information).
Create at least four more tests that are part of the TriangleTests group. These tests should pass (one of them could be EXPECT_NOT_THROW to validate that providing three integers will not throw an exception).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!