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
如何避免mock代码异常提交 #321
Comments
具体是怎么导致Mock代码提交到生产环境的呢? 正常来说,Mock代码只在单元测试运行的时候生效,不会出现在生成的jar包里。 |
目前我公司基本没有写单测,所以存在直接在代码里面mock数据,我记得阿里之前也有要求说写单测,但是实际上业务团队在追求效率情况下,也会采用类似的粗暴的直接mock,我的想法希望能够兼容这种场景 |
如果线上不挂载testable-mock agent的话应该也不会影响,那应该没问题 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
由于开发者的疏忽,将mock代码提交到生产环境,对此框架有没有对环境变量或者开关类做限制呢?
The text was updated successfully, but these errors were encountered: