-
Notifications
You must be signed in to change notification settings - Fork 41
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
feat: add test support #15
Conversation
@@ -2,29 +2,59 @@ | |||
|
|||
const fs = require('fs'); | |||
const path = require('path'); | |||
const coffee = require('coffee'); | |||
// const coffee = require('coffee'); |
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.
删除掉吧
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.
测试构建这块, 是直接 require 还是通过 coffee 启动来验证好呢? 前者的话, 会遇到上次那个问题, 验证不了 bin 文件.
如果这样, 那个 helper 就要看看怎么做到, 要看 coffee 如何 hack stdin
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.
coffee 有 write
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.
这次先不管 coffee 这个, 下个 PR 我再看看怎么搞
测试一直卡住的? |
之前没有 egg-ci, 现在重新跑, 晚上再修下 |
挂了? |
修复了, 白天是因为 npm 的环境变量, registryUrl 带有 最近感觉 travis-ci 执行好慢, 拉不到 github 的源码. |
我们晚上西方是白天,所以量就大了 |
Current coverage is 81.92% (diff: 77.27%)
|
cc @popomore 过了... |
+1 |
@@ -0,0 +1,5 @@ | |||
-r intelli-espower-loader | |||
-r ./node_modules/egg-bin/node_modules/thunk-mocha |
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.
npm3 运行就有问题了。
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.
好吧, 这个 opts 我全局干掉好了. 之前是为了方便 webstorm.
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.
done, 其他几个 boilerplate 的都提 PR 干掉了
1.5.0 |
初步实现单元测试功能, 增加一个 helper, 这样 boilerplate 那边也可以用 egg-init 来测试自己
先 review 下看看有没有问题