-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Fix test generation #775
Fix test generation #775
Conversation
arnaudgelas
commented
Jan 18, 2024
- Stop generating unit tests for non-python code files (e.g. ReadMe.md)
- Stop trying to install dependencies when there are none
When trying to create a simple HelloWorld with test, metagpt creates test for README.md
Do not try running pip install -r requirements.txt if the file does not exist or is empty. It avoids seeing an error in the log.
c5c6e09
to
6a9bd4a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
While the improvement in test coverage is lacking here, it does provide meaningful logic |
@arnaudgelas If the PR is marked as draft, then it cannot be merged |
Won't this impact non-python unit testing, such as Javascript/Typescript? |
@apofic Yes. This means that there will be missing tests for other languages. Perhaps we need a complete solution, but currently I'm not sure if it exists. |