Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implements a new model for test results, to allow for cleaner recursive outputs in callers #7

Merged
merged 5 commits into from
Jun 3, 2024

Conversation

Varun0157
Copy link
Collaborator

  • adds a SpecResult model and moves the spec attribute from TestResult to SpecResult, such that we have the following model:
export interface SpecResult {
  spec: string | null;
  results: TestResult[];
  subResults: SpecResult[];
}

Thus, if the caller (curr: vscode extension or cli) wants to flatten out the path invoked on an object, this is possible, or if the caller wants to print an indented output for subsequent layers, this is also possible.

@Varun0157 Varun0157 requested a review from vasan-agrostar June 2, 2024 19:43
@Varun0157 Varun0157 linked an issue Jun 2, 2024 that may be closed by this pull request
@vasan-agrostar vasan-agrostar merged commit 746ffd3 into main Jun 3, 2024
2 checks passed
@vasan-agrostar vasan-agrostar deleted the vsc#11_partial-matching-output branch June 3, 2024 05:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Alternative syntax for partial equality/matching?
2 participants