Codium-ai / cover-agent

QodoAI Cover-Agent: An AI-Powered Tool for Automated Test Generation and Code Coverage Enhancement! πŸ’»πŸ€–πŸ§ͺ🐞
https://qodo.ai/
GNU Affero General Public License v3.0
4.37k stars 327 forks source link

πŸ—’οΈ Improve README for devs (running the app locally) #201

Closed draialexis closed 3 weeks ago

draialexis commented 3 weeks ago

User description

Summary

This PR adds a concise section titled Running the app locally from source to the README. This guidance aims to clarify the process for devs needing to use the tool directly from the source code.


PR Type

Documentation


Description


Changes walkthrough πŸ“

Relevant files
Documentation
README.md
Add instructions for running the app locally in README     

README.md
  • Added a new section titled 'Running the app locally from source'.
  • Provided step-by-step instructions for running the app using Poetry.
  • Specified shell syntax for code blocks.
  • +22/-2   

    πŸ’‘ PR-Agent usage: Comment /help "your question" on any pull request to receive relevant information

    codiumai-pr-agent-pro[bot] commented 3 weeks ago

    PR Reviewer Guide πŸ”

    Here are some key observations to aid the review process:

    ⏱️ Estimated effort to review: 1 πŸ”΅βšͺβšͺβšͺβšͺ
    πŸ§ͺ No relevant tests
    πŸ”’ No security concerns identified
    ⚑ No major issues detected
    draialexis commented 3 weeks ago

    @EmbeddedDevops1 here's the PR about the README addition :)

    codiumai-pr-agent-pro[bot] commented 3 weeks ago

    PR Code Suggestions ✨

    Explore these optional code suggestions:

    CategorySuggestion                                                                                                                                    Score
    Enhancement
    βœ… Provide more context and explanation for the command usage in the README ___
    Suggestion Impact:The commit added explanations for the placeholders in the command example, specifying what to replace them with, and referenced the section for additional options, aligning with the suggestion to improve clarity. code diff: ```diff + --source-file-path \ + [other_options...] ``` -(i.e. prepending `poetry run` to your `cover-agent` commands -- -see the [Running the Code](#running-the-code) section above). +Notice that you're prepending `poetry run` to your `cover-agent` command. Replace `` with the +actual path to your source file. Add any other necessary options as described in +the [Running the Code](#running-the-code) section. ```
    ___ **Consider adding a brief explanation of what the cover-agent command does and what
    the ellipsis (...) represent in the command example. This will help users understand
    how to properly use the command.** [README.md [253-261]](https://github.com/Codium-ai/cover-agent/pull/201/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R253-R261) ```diff 3. Run the app ```shell poetry run cover-agent \ - --source-file-path ... \ - ... + --source-file-path \ + [other_options...] ``` +Replace `` with the actual path to your source file. +Add any other necessary options as described in the [Running the Code](#running-the-code) section. + (i.e. prepending `poetry run` to your `cover-agent` commands -- -see the [Running the Code](#running-the-code) section above). +see the [Running the Code](#running-the-code) section above for more details on available options). ```
    Suggestion importance[1-10]: 8 Why: This suggestion significantly improves the clarity of the README by explaining the command usage and placeholders, helping users understand how to execute the command correctly. It enhances user experience by reducing confusion and potential errors.
    8
    βœ… Add prerequisites section to clarify system requirements before running the app locally ___
    Suggestion Impact:The commit added a "Prerequisites" section to the README, listing Python3 and Poetry as requirements, which aligns with the suggestion to clarify system requirements. code diff: ```diff + +#### Prerequisites +- Python3 +- Poetry + +#### Steps ```
    ___ **Consider adding a note about potential system requirements or dependencies that
    might be needed before running the app locally. This could include Python version,
    operating system compatibility, or any other prerequisites.** [README.md [243-258]](https://github.com/Codium-ai/cover-agent/pull/201/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R243-R258) ```diff ### Running the app locally from source + +#### Prerequisites +- Python 3.x (specify minimum version) +- Poetry + +#### Steps 1. Install the dependencies ```shell poetry install ``` 2. Let Poetry manage / create the environment ```shell poetry shell ``` 3. Run the app ```shell poetry run cover-agent \ --source-file-path ... \ ... ``` ```
    Suggestion importance[1-10]: 7 Why: Adding a prerequisites section would enhance the README by providing users with necessary information about system requirements, ensuring they have the correct setup before attempting to run the app. This improves usability and reduces potential setup issues.
    7

    πŸ’‘ Need additional feedback ? start a PR chat

    mrT23 commented 3 weeks ago

    @draialexis cool, thanks for the PR :)