We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Others
binary
1.5
CentOS7.9
3.10.3
No response
自定义了组件(Component)后想集成到secretpad中,但是在集成之前不知道如何测试自己开发的组件是否可以顺利执行?在github上看到https://github.com/secretflow/secretflow/blob/main/secretflow/component/test_framework/README.md这个目录下有个疑似测试的教程。但是发现里面测试的组件TestComp好像只是一个class类,而不是像Component那样的定义方式。想请问下有没较完善的在将Component集成到secretpad前测试的教程?感觉如果无法在集成前对组件进行测试的话,开发难度会很大。
官方文档中Component组件的定义方式(感觉和test_framework中的开发方式不一致): ss_compare_comp = Component( "ss_compare", domain="user", version="0.0.1", desc="""compare two tables.""", ) https://github.com/secretflow/secretflow/blob/main/secretflow/component/test_framework/README.md中TestComp的定义方式: @dataclass class TestComp: uid: str comp_domain: str comp_name: str comp_version: str attrs: Dict[str, object]
The text was updated successfully, but these errors were encountered:
@Lucas-16 hey 我们建议你可以先写组件的单测,比如:https://github.com/secretflow/secretflow/tree/main/tests/component
我们使用pytest来测试代码,测试相关事项请查看:https://github.com/secretflow/secretflow/blob/main/CONTRIBUTING.md#test
感谢!
Sorry, something went wrong.
Stale issue message. Please comment to remove stale tag. Otherwise this issue will be closed soon.
No branches or pull requests
Issue Type
Others
Source
binary
Secretflow Version
1.5
OS Platform and Distribution
CentOS7.9
Python version
3.10.3
Bazel version
No response
GCC/Compiler version
No response
What happend and What you expected to happen.
Reproduction code to reproduce the issue.
The text was updated successfully, but these errors were encountered: