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

apex: unit test #116

Open
3 tasks
Tracked by #5
dufoli opened this issue May 23, 2024 · 1 comment
Open
3 tasks
Tracked by #5

apex: unit test #116

dufoli opened this issue May 23, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@dufoli
Copy link
Owner

dufoli commented May 23, 2024

Unit test

  • ability to launch unit test (select or all)
  • display result of unit test : ApexTestRunResult global and ApexTestResult/ApexTestQueueItem by method
  • display code coverage after test run

doc: https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/intro_rest_resources.htm

route POST tooling/runTestsAsynchronous

list of test : /_ui/common/apex/test/ApexTestQueueServlet
POST Body : action=GET_TESTS

class coverage:

SELECT%20ApexClassOrTriggerId,%20ApexClassOrTrigger.Name,%20NumLinesCovered,%20NumLinesUncovered%20FROM%20ApexCodeCoverageAggregate%20%20WHERE%20ApexClassOrTriggerId%20!=%20NULL%20AND%20ApexClassOrTrigger.Name%20!=%20NULL%20AND%20(NumLinesCovered%20%3E%200%20OR%20NumLinesUncovered%20%3E%200)%20AND%20NumLinesCovered%20!=%20NULL%20AND%20NumLinesUncovered%20!=%20NULL%20ORDER%20BY%20ApexClassOrTrigger.Name

SELECT%20PercentCovered%20FROM%20ApexOrgWideCoverage

long polling :
"channel": "/systemTopic/TestResult"

@dufoli dufoli added the enhancement New feature or request label May 23, 2024
@dufoli dufoli added this to the 1.28 milestone May 23, 2024
@dufoli dufoli self-assigned this May 23, 2024
@dufoli dufoli mentioned this issue May 23, 2024
96 tasks
@dufoli
Copy link
Owner Author

dufoli commented Jun 2, 2024

@dufoli dufoli modified the milestones: 1.28, 1.29 Jul 12, 2024
@dufoli dufoli modified the milestones: 1.29, 1.30 Jul 26, 2024
@dufoli dufoli modified the milestones: 1.30, 1.31 Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant