question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

proposal: unit tests for browsers

See original GitHub issue

I would like to see actual browser based unit tests and would like to help with this.

I recommend using mocha with puppeteer like we do at https://github.com/zurb/foundation-sites

To be exact mocha-headless-chrome + mocha + chai.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
DanielRufcommented, May 6, 2018

@gurupras any support is very appreciated.

I’m currently finishing a very short introduction article about the mentioned solutions, it might be probably helpful.

1reaction
guruprascommented, May 6, 2018

I have reasonably good experience with puppeteer if we do end up going that way. I’m not very good at writing stuff from scratch, but if someone can come up with a basic framework for doing this, I’m sure I can help quite a bit.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Learning How to Set Up Automated, Cross-browser JavaScript ...
The Start JS Unit Tests method initiates testing of a single HTML page (at the given URL) on as many browser/platform combinations as...
Read more >
Unit Testing Tutorial: A Comprehensive Guide With Examples ...
You can utilize various Unit testing frameworks to perform automated browser testing and UI testing. A cloud-based testing platform like LambdaTest offers you ......
Read more >
How to run unit-tests in all browsers? - Stack Overflow
1. You can automate testing on all browsers installed on your machine with js-test-driver. – JoshNaro · 2. Not even on your machine,...
Read more >
Testing in Chromium - docs/testing/testing_in_chromium.md
Browser Tests is built on top of gtest, and it is used to write integration tests and e2e tests in Chromium.
Read more >
Unit Testing Best Practices : Everyone Must Know
Use real browsers and devices. It doesn't matter what emulator or simulator is being used; they will not offer 100% accurate results.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found