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

测试方案 #900

Closed
yesmeck opened this issue Feb 27, 2017 · 8 comments
Closed

测试方案 #900

yesmeck opened this issue Feb 27, 2017 · 8 comments
Assignees
Milestone

Comments

@yesmeck
Copy link
Member

yesmeck commented Feb 27, 2017

  1. 引入 jest 对所有的 demo 做 snapshot 测试(同 antd 的做法);
  2. 引入 enzyme 用于 web 组件的测试;

@ant-design/ant-design-team 其他还有什么想法吗?

@afc163
Copy link
Member

afc163 commented Feb 27, 2017

native 的测试方案?

@yesmeck
Copy link
Member Author

yesmeck commented Feb 27, 2017

native 也可以用 jest 的 snapshot 的。不过不能用 enzyme,类似的行为测试需要研究下。

@paranoidjk
Copy link
Contributor

@warmhug
Copy link
Contributor

warmhug commented Mar 1, 2017

@yesmeck 找个组件写个例子?方便大家参考一起做

@yesmeck
Copy link
Member Author

yesmeck commented Mar 1, 2017

@warmhug 👌

@paranoidjk
Copy link
Contributor

建议 rc-tools 内置的测试方案也切换到 jest + enzyme 统一下,体验也更好

react-component/tabs@7677efe

@yesmeck
Copy link
Member Author

yesmeck commented Mar 1, 2017 via email

@yesmeck yesmeck mentioned this issue Mar 2, 2017
@paranoidjk paranoidjk added this to the 1.1 milestone Mar 2, 2017
@GZWZC
Copy link

GZWZC commented Jun 3, 2017

用jest跑测试的时候 会遇到引入css.web.js的问题吗

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

5 participants