Skip to content

Commit

Permalink
adjust assets reporting to align to feedback presented by samvaity (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
scbedd authored Jun 2, 2023
1 parent 8075f11 commit 1011a0e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -356,14 +356,14 @@ def evaluate_java_package(package_path: str) -> int:
possible_test_directory = resolve_java_test_directory(package_path)
possible_assets_location = os.path.join(os.path.dirname(package_path),'assets.json')

if os.path.exists(possible_assets_location):
return 2

if not possible_test_directory:
return 0
return -1

test_files = glob.glob(os.path.join(possible_test_directory, "**", "*.java"), recursive=True)

if os.path.exists(possible_assets_location):
return 2

# we only will search the test_files if there are actual session-records present
session_glob = os.path.join(possible_test_directory, "**", "session-records")
session_records = glob.glob(session_glob, recursive=True)
Expand Down

0 comments on commit 1011a0e

Please sign in to comment.