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

Fix test generation #775

Merged
merged 2 commits into from
Jan 23, 2024
Merged

Fix test generation #775

merged 2 commits into from
Jan 23, 2024

Conversation

arnaudgelas
Copy link
Contributor

  • Stop generating unit tests for non-python code files (e.g. ReadMe.md)
  • Stop trying to install dependencies when there are none

metagpt/actions/run_code.py Outdated Show resolved Hide resolved
metagpt/actions/run_code.py Outdated Show resolved Hide resolved
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.
Copy link
Owner

@geekan geekan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@geekan
Copy link
Owner

geekan commented Jan 22, 2024

While the improvement in test coverage is lacking here, it does provide meaningful logic

@geekan
Copy link
Owner

geekan commented Jan 22, 2024

@arnaudgelas If the PR is marked as draft, then it cannot be merged

@arnaudgelas arnaudgelas marked this pull request as ready for review January 22, 2024 19:07
@apofic
Copy link

apofic commented Jan 23, 2024

Won't this impact non-python unit testing, such as Javascript/Typescript?

@geekan geekan merged commit 63b7a85 into geekan:main Jan 23, 2024
1 of 2 checks passed
@geekan
Copy link
Owner

geekan commented Jan 23, 2024

@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.

@arnaudgelas arnaudgelas deleted the fix/test-generation branch January 23, 2024 07:14
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.

3 participants