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

Testing #5458

Open
danroth27 opened this issue Jan 25, 2018 · 2 comments

Comments

@danroth27
Copy link
Member

commented Jan 25, 2018

  • Unit test helper for instantiating components and trying out events, etc.
  • End-to-end
@RehanSaeed

This comment has been minimized.

Copy link

commented May 23, 2018

Please also consider snapshot testing, similar to Jest. I've been using it with Vue.js and I've found it to be a great way to test UI without being too fragile and needing constant fixing.

@aspnet-hello aspnet-hello transferred this issue from aspnet/Blazor Dec 17, 2018

@aspnet-hello aspnet-hello added this to the Backlog milestone Dec 17, 2018

@rynowak rynowak added this to To do in Blazor via automation Jan 3, 2019

@rynowak rynowak moved this from To do to Design in Blazor Jan 3, 2019

@guardrex guardrex referenced this issue May 21, 2019
0 of 2 tasks complete
@veikkoeeva

This comment has been minimized.

Copy link

commented Jul 24, 2019

Probably under consideration, but it appears the end-to-end tests could work with Puppeteer.Sharp (ping @kblok, the Selenium libraries are also an option) using something like Razor Live Reload with the usual ways of starting a web server in tests. Then have examples how to collect performance numbers, test some CSS driven things, web components and Service Workers. Could be interesting to load tests dynamically so one could test mobile browsers too (especially performance).

Cypress and TestCafe could be some examples, albeit I'm not sure how much overlap there are with assertion libraries, like XUnit.

<Edit: One consideration is also isomorphic situations, one being something that can be run or mimicks environments like Cloudflare Workers, e.g. https://github.com/anywhichway/dexterous or https://github.com/envato/cloudflare-worker-test-harness .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.