Skip to content

Commit 3789d81

Browse files
committed
STYLE: Conform to the ITK SW Guide when reporting in tests.
Conform to the ITK SW Guide when reporting in tests: - Write explicitly that arguments are missing. - Write explicitly that the test has finished.
1 parent b940685 commit 3789d81

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

{{cookiecutter.project_name}}/test/itk{{cookiecutter.filter_name}}Test.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ int itk{{cookiecutter.filter_name}}Test( int argc, char * argv[] )
5555
{
5656
if( argc < 2 )
5757
{
58+
std::cerr << "Missing parameters." << std::endl;
5859
std::cerr << "Usage: " << argv[0];
5960
std::cerr << " outputImage";
6061
std::cerr << std::endl;
@@ -92,5 +93,6 @@ int itk{{cookiecutter.filter_name}}Test( int argc, char * argv[] )
9293
TRY_EXPECT_NO_EXCEPTION( writer->Update() );
9394

9495

96+
std::cout << "Test finished." << std::endl;
9597
return EXIT_SUCCESS;
9698
}

0 commit comments

Comments
 (0)