text: import sys
  import os
  from attributes.unit_test.discoverer import get_test_discoverer
  import platform
  
  def run(project_id, repo_path, cursor, **options):
      print("----- METRIC: UNIT TEST -----")
      query = 'SELECT language FROM projects WHERE id = %d' % project_id
      cursor.execute(query)
      if(platform.system() == 'Windows'):
          repo_path_abs = str(os.getcwd()) + "\\" +repo_path
      else:
          repo_path_abs = str(os.getcwd()) + "/" +repo_path
      record = cursor.fetchone()
      discoverer = get_test_discoverer(language=record[0])
      proportion = discoverer.discover(repo_path_abs)
      threshold = options['threshold']
      print('Unit Test: ',proportion)
      return (proportion >= threshold), proportion
  
  if __name__ == '__main__':
      print('Attribute plugins are not meant to be executed directly.')
      sys.exit(1)
  