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

Cache规则校验工具 #13

Open
2 of 3 tasks
tayqassqan opened this issue Oct 12, 2018 · 1 comment
Open
2 of 3 tasks

Cache规则校验工具 #13

tayqassqan opened this issue Oct 12, 2018 · 1 comment
Assignees

Comments

@tayqassqan
Copy link
Collaborator

tayqassqan commented Oct 12, 2018

规则校验工具主要通过已知的页面描述规则文件,进行规则的校验,因在 #12 已经提到,规则的描述沿用了MIP Validator的配置语法, 因此规则校验工具也可以直接使用MIP Validator,使用时替换对应的rules.json即可。

方案包括:

  • 将MIP Validator npm install到mip-cache project中使用;
  • 使用时通过传入规则API让validator使用Cache规则进行校验;
  • 为工具添加e2e测试
@tayqassqan
Copy link
Collaborator Author

tayqassqan commented Oct 16, 2018

mip-validator 在cache校验中通过命令行执行比API调用更好,因此校验工具的使用方式为:

  1. 在project中维护新的rules.json规则;
  2. 通过npm script提供校验执行命令;
  3. 在e2e测试时,通过命令行调用完成e2e测试;

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

1 participant