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

About testing and generated documents #1551

Open
lily-toru opened this issue Oct 30, 2024 · 6 comments
Open

About testing and generated documents #1551

lily-toru opened this issue Oct 30, 2024 · 6 comments
Assignees

Comments

@lily-toru
Copy link

  1. Why are there no contents in tests and test_outputs in the generated code directory? How do you generate relevant documents and code? (生成的代码目录下,为什么tests和test_outputs里面没有内容?如果想要生成相关文档,该如何操作呢?)

  2. The generated documents, such as those in the PRD directory, are in MD format. Is it possible to create documents in Word format? (已生成的文档,如prd目录下的文档,是md格式的。请问是否可以生成word格式的文档。)

@geekan
Copy link
Owner

geekan commented Oct 30, 2024

Thank you for your question. Just ask in English is ok.

@iorisa
Copy link
Collaborator

iorisa commented Oct 30, 2024

  1. When executing the metagpt command, add the --run-tests parameter, and also set a larger number for the --n-round parameter, such as 99, to enter the unit testing phase. See more...

  2. Markdown documents are relatively easy to convert into PDF, Word, and other document formats, and Markdown is a browser-friendly document format, so we choose to generate Markdown documents. You can use Pandoc to convert Markdown to Word, but this functionality has not been integrated into MetaGPT."
    For example:

import pypandoc

output = pypandoc.convert_file('input.md', 'docx', outputfile='output.docx')
assert output == ""

or

pandoc input.md -o output.docx

@lily-toru lily-toru changed the title About testing and generated documents(关于测试和生成的文档) About testing and generated documents Oct 30, 2024
@lily-toru
Copy link
Author

  1. It is directly added after the metagpt command, just like this [metagpt "Write a xxx function" -- run tests]?
    However, after running, there's still no content in the "tests" and "test_outputs" folders.
    Can you provide an example of a command that includes setting the --n-round parameter?

@geekan
Copy link
Owner

geekan commented Oct 30, 2024

I feel it would be more efficient to discuss this issue in version 1.0. The current design will actually be obsolete in version 1.0.

@lily-toru
Copy link
Author

I feel it would be more efficient to discuss this issue in version 1.0. The current design will actually be obsolete in version 1.0.

That is to say, in the current version, there will no further updates regarding the test section.
May I ask will the version 1.0 be released soon?

@geekan
Copy link
Owner

geekan commented Oct 31, 2024

@lily-toru Yes. 1.0 will be available in the coming weeks.

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

No branches or pull requests

3 participants