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

feat: Integration of Pest command and CodeLens #26

Merged
merged 1 commit into from
Apr 14, 2022

Conversation

yaegassy
Copy link
Owner

Description

Added integration capabilities for Pest, a testing framework for PHP. Pest is similar to Jest.

Commands

  • intelephense.pest.projectTest: Run Pest for current project
  • intelephense.pest.fileTest: Run Pest for current file
  • intelephense.pest.singleTest: Run Pest for single (nearest) test

Settings(coc-settings.json)

  • intelephense.pest.path: Path to Pest command. If there is no setting, the vendor/bin/pest will be used, default: ""
  • intelephense.pest.doNotCacheResult: Do not write test results to cache file (--do-not-cache-result), default: true
  • intelephense.pest.codeLensTitle: CodeLens title. Can be changed to any display, default: ">> [Run Pest]"
  • intelephense.pest.enableSplitRight: Use vertical belowright for pest terminal window, default: false

CodeLens

Set intelephense.client.codelensProvider to pest. The default is phpunit.

@yaegassy yaegassy merged commit a2193f1 into master Apr 14, 2022
@yaegassy
Copy link
Owner Author

yaegassy commented Apr 14, 2022

DEMO (mp4)

coc-settings.json:

{
  "intelephense.client.codelensProvider": "pest"
}

coc-intelephense-pest.mp4

@yaegassy yaegassy deleted the feat/pest-integrate branch April 14, 2022 11:44
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.

1 participant