Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 2.8 KB

README.md

File metadata and controls

40 lines (27 loc) · 2.8 KB

Qodo Cover GitHub Action Example

This repo shows how the Qodo Cover GitHub Actions can be added to your repository.

The repo linked above defines 2 actions:

  • qodo-cover: This action runs the Qodo Cover agent and is intended to be manually triggered. The agent tries to expand coverage on all project files of the specified language.
  • qodo-cover-pr: This action runs the Qodo Cover agent in "pr" mode, and is intended to be triggered by pull requests. In "pr" mode, the agent tries to expand coverage only on modified files of the specified language.

In both of the above actions if the agent successfully increases coverage it will create a PR with the added tests as well as a coverage improvement report. See this PR as an example.

Supported languages

  • Python
  • PHP
  • Java
  • Go
  • Kotlin
  • More coming soon!

Workflow examples

To use a Qodo Cover GitHub Action, you need to add it to your GitHub workflow. Take a look at the following working examples:

Remember to enable GitHub Actions to create pull requests: This setting can be found in a repository's settings under Actions > General > Workflow permissions.

Generated Tests

While developing the Qodo Cover agent we tested it on some open source repositories. Take a look at the changes in these pull requests: