#382·datree

Improve test command coverage for networking use cases

Author: noaabarkiCreated Jan 17, 2022Updated Mar 3, 2024
Labelsenhancementgood first issueup for grabstesting

Describe the solution you'd like Add tests for networking failures flows in test command datree test <path>

Basic use cases to cover:

Failed to create evaluation

  • should create evaluation → meaning to call CreateEvaluation
  • should not request evaluation → meaning not to call Evaluate
  • should print mocked errors.

Failed to request evaluation

  • should create evaluation → meaning to call CreateEvaluation
  • should request evaluation → meaning to call Evaluate with returned evaluationID
  • should print mocked errors.

Requirements Golang basic level.