Skip to content

Commit

Permalink
only check for existence of contract and test directory for truffle p…
Browse files Browse the repository at this point in the history
…rojects
  • Loading branch information
JoranHonig committed Feb 5, 2021
1 parent bd7385e commit 52dde15
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions eth_vertigo/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,16 @@ def run(
store = IncrementalMutationStore.from_file(incremental_store_file)
test_suggesters.append(IncrementalSuggester(store))

if project_type:
click.echo("[*] Starting analysis on project")
project_path = Path(working_directory)
click.echo("[*] Starting analysis on project")
project_path = Path(working_directory)

if project_type == "truffle":
if not (project_path / "contracts").exists():
click.echo("[-] No contracts directory in truffle project")
return
click.echo("[-] No contracts directory in project")
elif not (project_path / "test").exists():
click.echo("[-] No test directory found in truffle project")
return
click.echo("[-] No test directory found in project")

if project_type:
if sample_ratio:
filters.append(SampleFilter(sample_ratio))

Expand Down

0 comments on commit 52dde15

Please sign in to comment.