public subroutine runTests(self)
Run all tests contained in a test suite.
Arguments
Type |
Intent | Optional |
Attributes | | Name | |
class(TestSuite), |
intent(in) |
|
| :: |
self | |
Variables
Type | Visibility |
Attributes | | Name | | Initial | |
integer, |
public |
| :: |
tot_passed | | | |
Source Code
subroutine runTests(self)
!! Run all tests contained in a test suite.
class(TestSuite), intent(in) :: self
integer :: tot_passed
if (this_image() == 1) then
print TEST_START, trim(self%test_suite_name)
end if
tot_passed = 0
if (associated(self%test)) tot_passed = self%test%run()
if (this_image() == 1) then
print TEST_END, trim(self%test_suite_name), tot_passed, self%n_tests
end if
end subroutine runTests