Skip to content

Commit

Permalink
Checking for invalid project
Browse files Browse the repository at this point in the history
  • Loading branch information
TimSVector committed Aug 26, 2020
1 parent a581122 commit 86ec8e0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/main/resources/scripts/generate_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -827,11 +827,13 @@ def __print_test_case_was_skipped(self, searchName, passed):
args.verbose,
None)


if xml_file.using_cover:
if xml_file.api == None:
print ("\nCannot find project file (.vcp or .vce): " + envPath + os.sep + env)

elif xml_file.using_cover:
xml_file.generate_cover()
print ("\nvectorcast-coverage plugin for Jenkins compatible file generated: " + xmlCoverReportName)

else:
xml_file.generate_unit()
print ("\nJunit plugin for Jenkins compatible file generated: " + xmlTestingReportName)

0 comments on commit 86ec8e0

Please sign in to comment.