Skip to content

Commit

Permalink
Check if running source code analysis is printed in any of the termin…
Browse files Browse the repository at this point in the history
…al lines
  • Loading branch information
midays committed May 9, 2024
1 parent 2a78840 commit 677fd4d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/models/IDE/VisualStudioCode.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,13 @@ def run_simple_analysis(self, configuration_name: str):
self.press_keys("enter")

# Verify analysis has started
time.sleep(5)
terminal_lines = self.copy_terminal_output()
log_map = parse_log_string(terminal_lines[1])

assert is_date_today(log_map["time"])
assert log_map["msg"] == "running source code analysis"
# todo: implement a function to return a list of all the messages in all the terminal lines
assert "running source code analysis" in terminal_lines

def is_analysis_complete(self, timeout=300):
"""
Expand Down

0 comments on commit 677fd4d

Please sign in to comment.