You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apisix.apache.org by 张锁 <45...@qq.com> on 2019/10/25 08:21:56 UTC

回复: [DISCUSS] Apache APISIX(Incubating) Should we add automatic testsfor Dashboard

hi,all
   maybe Karma is an option 
   the link is:  https://github.com/karma-runner/karma


  the futures:

You want to test code in real browsers.

You want to test code in multiple browsers (desktop, mobile, tablets, etc.).

You want to execute your tests locally during development.

You want to execute your tests on a continuous integration server.

You want to execute your tests on every save.


best regards!


coolsoul@apache.org




------------------ 原始邮件 ------------------
发件人: "Ming Wen"<we...@apache.org>;
发送时间: 2019年10月25日(星期五) 下午2:09
收件人: "dev"<de...@apisix.apache.org>;

主题: Re: [DISCUSS] Apache APISIX(Incubating) Should we add automatic testsfor Dashboard



Cool. I can not wait for that:)
Frontend e2e testing will save lots of time for developers.

Thanks,
Ming Wen, Apache APISIX
Twitter: _WenMing


Zhiyuan Ju <ju...@apache.org> 于2019年10月25日周五 下午2:01写道:

> Hello Ming Wen,
>
> The issue[1] and blog post[2] shows that the Nightwatch can work with
> Travis, and I will have a try this weekend.
>
> [1]
> https://github.com/dwyl/learn-nightwatch/issues/8#issuecomment-264734792
> [2]
>
> http://sm4.github.io/2017/02/07/Vue-Nightwatch-e2e-tests-on-Travis-CI-in-Chrome/
>
> Best Regards!
> @ Zhiyuan Ju <https://www.shaoyaoju.org/>
>
>
> Ming Wen <we...@apache.org> 于2019年10月25日周五 下午1:24写道:
>
> > Zhiyuan, this e2e testing framework is amazing.
> > Can it run in Travis CI?
> >
> > Thanks,
> > Ming Wen
> > Twitter: _WenMing
> >
> >
> > Zhiyuan Ju <ju...@apache.org> 于2019年10月25日周五 下午12:27写道:
> >
> > > Hi Yuansheng,
> > >
> > > Thanks for reminding me :)
> > >
> > > The previous video link is for the owner, the correct one is
> > > https://vimeo.com/368695249
> > >
> > > Also, we may need to use a VPN to visit this video site.
> > >
> > > Best Regards!
> > > @ Zhiyuan Ju <https://www.shaoyaoju.org/>
> > >
> > >
> > > YuanSheng Wang <me...@gmail.com> 于2019年10月25日周五 下午12:09写道:
> > >
> > > > Hi Zhiyuan:
> > > >
> > > > When I try to open the demo video link, it shows a failure, please
> > check
> > > > this link:
> https://vimeo.com/user104349533/review/368695249/10e8841808
> > > >
> > > > -------------------
> > > > Sorry, we couldn’t find that page
> > > > Make sure you’ve typed the URL correctly, or try searching Vimeo. You
> > > could
> > > > also watch one of the videos below instead.
> > > > -------------------
> > > >
> > > > On Fri, Oct 25, 2019 at 11:11 AM Zhiyuan Ju <ju...@apache.org>
> > > wrote:
> > > >
> > > > > Dear committers,
> > > > >
> > > > > The APISIX Dashboard doesn't have proper test cases yet, so I'd
> > > recommend
> > > > > adding some cases if needed.
> > > > >
> > > > > I hope we could use Nightwatch[1] which is open-source on GitHub to
> > > test
> > > > > our Dashboard, it could act some human beings' actions like click,
> > > mouse
> > > > > move, input, etc.
> > > > >
> > > > > The following link is the demo video for the Login Test:
> > > > >
> > > > > https://vimeo.com/user104349533/review/368695249/10e8841808
> > > > >
> > > > > [1] https://github.com/nightwatchjs/nightwatch
> > > > >
> > > > > Best Regards!
> > > > > @ Zhiyuan Ju <https://www.shaoyaoju.org/>
> > > > >
> > > >
> > > >
> > > > --
> > > >
> > > > *MembPhis*
> > > > My github: https://github.com/membphis
> > > > Our Book: OpenResty Best Practices
> > > > <https://www.gitbook.com/book/moonbingbing/openresty-best-practices>
> > > >
> > >
> >
>

Re: [DISCUSS] Apache APISIX(Incubating) Should we add automatic testsfor Dashboard

Posted by Zhiyuan Ju <ju...@apache.org>.
Hi Zhang,

Thank you for your recommendation, we could use both Karma and Nightwatch
for Dashboard test.

And there have some differences between them: Karma is usually as a unit
testing framework, and Nightwatch is usually for E2E test. That means we
could test micro codes like component with Karma, and go through a complete
logic steps with another one :)

张锁 <45...@qq.com> 于 2019年10月25日周五 16:50写道:

> hi,all
>    maybe Karma is an option
>    the link is:  https://github.com/karma-runner/karma
>
>
>   the futures:
>
> You want to test code in real browsers.
>
> You want to test code in multiple browsers (desktop, mobile, tablets,
> etc.).
>
> You want to execute your tests locally during development.
>
> You want to execute your tests on a continuous integration server.
>
> You want to execute your tests on every save.
>
>
> best regards!
>
>
> coolsoul@apache.org
>
>
>
>
> ------------------ 原始邮件 ------------------
> 发件人: "Ming Wen"<we...@apache.org>;
> 发送时间: 2019年10月25日(星期五) 下午2:09
> 收件人: "dev"<de...@apisix.apache.org>;
>
> 主题: Re: [DISCUSS] Apache APISIX(Incubating) Should we add automatic
> testsfor Dashboard
>
>
>
> Cool. I can not wait for that:)
> Frontend e2e testing will save lots of time for developers.
>
> Thanks,
> Ming Wen, Apache APISIX
> Twitter: _WenMing
>
>
> Zhiyuan Ju <ju...@apache.org> 于2019年10月25日周五 下午2:01写道:
>
> > Hello Ming Wen,
> >
> > The issue[1] and blog post[2] shows that the Nightwatch can work with
> > Travis, and I will have a try this weekend.
> >
> > [1]
> > https://github.com/dwyl/learn-nightwatch/issues/8#issuecomment-264734792
> > [2]
> >
> >
> http://sm4.github.io/2017/02/07/Vue-Nightwatch-e2e-tests-on-Travis-CI-in-Chrome/
> >
> > Best Regards!
> > @ Zhiyuan Ju <https://www.shaoyaoju.org/>
> >
> >
> > Ming Wen <we...@apache.org> 于2019年10月25日周五 下午1:24写道:
> >
> > > Zhiyuan, this e2e testing framework is amazing.
> > > Can it run in Travis CI?
> > >
> > > Thanks,
> > > Ming Wen
> > > Twitter: _WenMing
> > >
> > >
> > > Zhiyuan Ju <ju...@apache.org> 于2019年10月25日周五 下午12:27写道:
> > >
> > > > Hi Yuansheng,
> > > >
> > > > Thanks for reminding me :)
> > > >
> > > > The previous video link is for the owner, the correct one is
> > > > https://vimeo.com/368695249
> > > >
> > > > Also, we may need to use a VPN to visit this video site.
> > > >
> > > > Best Regards!
> > > > @ Zhiyuan Ju <https://www.shaoyaoju.org/>
> > > >
> > > >
> > > > YuanSheng Wang <me...@gmail.com> 于2019年10月25日周五 下午12:09写道:
> > > >
> > > > > Hi Zhiyuan:
> > > > >
> > > > > When I try to open the demo video link, it shows a failure, please
> > > check
> > > > > this link:
> > https://vimeo.com/user104349533/review/368695249/10e8841808
> > > > >
> > > > > -------------------
> > > > > Sorry, we couldn’t find that page
> > > > > Make sure you’ve typed the URL correctly, or try searching Vimeo.
> You
> > > > could
> > > > > also watch one of the videos below instead.
> > > > > -------------------
> > > > >
> > > > > On Fri, Oct 25, 2019 at 11:11 AM Zhiyuan Ju <ju...@apache.org>
> > > > wrote:
> > > > >
> > > > > > Dear committers,
> > > > > >
> > > > > > The APISIX Dashboard doesn't have proper test cases yet, so I'd
> > > > recommend
> > > > > > adding some cases if needed.
> > > > > >
> > > > > > I hope we could use Nightwatch[1] which is open-source on GitHub
> to
> > > > test
> > > > > > our Dashboard, it could act some human beings' actions like
> click,
> > > > mouse
> > > > > > move, input, etc.
> > > > > >
> > > > > > The following link is the demo video for the Login Test:
> > > > > >
> > > > > > https://vimeo.com/user104349533/review/368695249/10e8841808
> > > > > >
> > > > > > [1] https://github.com/nightwatchjs/nightwatch
> > > > > >
> > > > > > Best Regards!
> > > > > > @ Zhiyuan Ju <https://www.shaoyaoju.org/>
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > >
> > > > > *MembPhis*
> > > > > My github: https://github.com/membphis
> > > > > Our Book: OpenResty Best Practices
> > > > > <
> https://www.gitbook.com/book/moonbingbing/openresty-best-practices>
> > > > >
> > > >
> > >
> >