Giter Club home page Giter Club logo

Comments (3)

wangjinxin613 avatar wangjinxin613 commented on July 23, 2024 1

感谢反馈
问题1 确实存在,是因为自动化测试模式 uni -p mp-weixin 命令加上 --auto-port 9520 参数后会导致异步的同步文件进程还未结束就提前结束了构建,并非 vite 不支持自动化测试。会在近期修复这个问题,暂时解决方法:node_modules/@dcloudio/vite-plugin-uni/dist/cli/action.js 文件第112行,process.exit(0); 改成 setTimeout 2000毫秒后执行。
image
问题2 element.input() 确实存在 vue3 的兼容性问题,但已修复,可关注近期 hbuilderX alpha 新版本发布。
问题3 setup语法 暂时还不支持调用 data 和 method,可试试 exposed,exposed 暴露的方法应该可以调用
问题4 我自己弄的demo,可供参考:https://github.com/wangjinxin613/uniapp-vue3-cli

from hello-uniapp.

w123angmeng avatar w123angmeng commented on July 23, 2024

需要手动把pages.json 中tabar配置的图片,在main.js中再引入一遍 能暂时解决这个问题。npm run test:mp-weixin 能正常跑起来

from hello-uniapp.

w123angmeng avatar w123angmeng commented on July 23, 2024

感谢反馈 问题1 确实存在,是因为自动化测试模式 uni -p mp-weixin 命令加上 --auto-port 9520 参数后会导致异步的同步文件进程还未结束就提前结束了构建,并非 vite 不支持自动化测试。会在近期修复这个问题,暂时解决方法:node_modules/@dcloudio/vite-plugin-uni/dist/cli/action.js 文件第112行,process.exit(0); 改成 setTimeout 2000毫秒后执行。 image 问题2 element.input() 确实存在 vue3 的兼容性问题,但已修复,可关注近期 hbuilderX alpha 新版本发布。 问题3 setup语法 暂时还不支持调用 data 和 method,可试试 exposed,exposed 暴露的方法应该可以调用 问题4 我自己弄的demo,可供参考:https://github.com/wangjinxin613/uniapp-vue3-cli

多谢回复 还有问题想请教一下

  1. 想咨询下 uniapp自动化测试支持部署到服务器上定时任务去跑测试用例吗?目前遇到的问题是npm run test:mp-weixin 本地电脑跑有微信开发者工具能看到测试报告;如果是服务器linux jenkins自动部署,执行npm run test:mp-weixin,没有微信开发者工具,是不是就不行?或者有啥别的方案不?

有遇到同样场景需要解决的伙伴没? 方便的话 交流一下

查到微信小程 miniprogram-ci (若需在不依赖开发者工具场景如自身业务工程流水线上进行小程序项目上传、预览,则推荐使用 miniprogram-ci。https://developers.weixin.qq.com/miniprogram/dev/devtools/cli.html)

from hello-uniapp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.