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

Modify apex-node to include new test setup fields and data structure #378

Merged
merged 13 commits into from
Jun 24, 2024

Conversation

CristiCanizales
Copy link
Contributor

@CristiCanizales CristiCanizales commented Jun 12, 2024

What does this PR do?

Adds new type TestResultRaw to apex-node. This type will be the internal representation of test results in a form that follows the structure of data queried from SOQL (pretty much same as TestResult is now). The new type will need new summary section field testSetupTime as a number.

What issues does this PR fix or reference?

@W-15923080@

Functionality After

  • New type TestResultRaw is used as the internal data structure for accumulating test results
  • Type TestResultRaw will have the property testSetupTime present if available
  • Section "tests" will have test setup method entries, if available
  • TestResult API contract remains unchanged
  • TestResultRaw transform to TestResult will not propagate any of the new test setup data to the API caller.

Extra:

  • Updates validate pr workflow: adds synchronize type. The synchronize event helps ensure that workflows are re-run whenever there are new commits added to the pull request

@CristiCanizales CristiCanizales self-assigned this Jun 12, 2024
@CristiCanizales CristiCanizales marked this pull request as ready for review June 13, 2024 17:06
Copy link
Collaborator

@peternhale peternhale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@CristiCanizales please add a test to cover the sobject describe logic and its affect on queries that are modified based on those results.

src/tests/asyncTests.ts Outdated Show resolved Hide resolved
src/tests/asyncTests.ts Outdated Show resolved Hide resolved
src/tests/asyncTests.ts Outdated Show resolved Hide resolved
src/tests/asyncTests.ts Outdated Show resolved Hide resolved
src/tests/types.ts Outdated Show resolved Hide resolved
src/tests/types.ts Outdated Show resolved Hide resolved
src/tests/types.ts Outdated Show resolved Hide resolved
src/tests/types.ts Show resolved Hide resolved
Copy link
Collaborator

@peternhale peternhale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@CristiCanizales one more change. Its on me I mislead you on are call.

src/index.ts Outdated Show resolved Hide resolved
src/tests/asyncTests.ts Outdated Show resolved Hide resolved
@peternhale peternhale self-requested a review June 24, 2024 20:42
@peternhale peternhale merged commit 7afb09d into main Jun 24, 2024
14 of 16 checks passed
@peternhale peternhale deleted the cristi/w-15923080 branch June 24, 2024 21:08
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.

2 participants