-
Notifications
You must be signed in to change notification settings - Fork 108
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
New mochify #395
New mochify #395
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #395 +/- ##
==========================================
+ Coverage 96.49% 97.50% +1.00%
==========================================
Files 2 16 +14
Lines 684 3960 +3276
==========================================
+ Hits 660 3861 +3201
- Misses 24 99 +75
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Only thing that is failing is the missing Chromium:
|
537c0e0
to
52f12e8
Compare
Builds now pass, except for Safari which has failing unit tests. |
52f12e8
to
a8ff9af
Compare
Failed to run Sauce Labs test: https://github.com/sinonjs/fake-timers/runs/3700288517 Will have to wait for #395 This reverts commit ca1458a.
Any idea what the "kl" in the output is? Some debugging statement left in?
|
a8ff9af
to
6d50be4
Compare
When I run it locally with the current state of mochify linked locally, this doesn't appear. |
Hah, probably me that has fiddled around with node_modules when debugging at some earlier stage and forgot 😄 |
Just wondering about the tests that fail in Safari ... how do I run these Mochify tests locally against a local Safari instance? |
You can launch Setup and config examples are documented here: https://github.com/mantoni/mochify.js/blob/rewrite/driver-webdriver/README.md |
Must wait for sinonjs/fake-timers#395
I finally manager to get a new Mochify release out and updated this PR. I have no idea why the selenium job is skipped. Anyone? Happy Christmas 🎄 |
After a small adjustment, tests now also pass in all browsers, including Safari. Unfortunately Safari does not include the function name in the While testing I also removed Browserify and used ESBuild instead. If this is not wanted, I'm happy to switch it back. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice 👍
Purpose (TL;DR) - mandatory
I'm working on a rewrite of mochify which aims to solve #380, is more modular and works with any bundler.
Background (Problem in detail) - optional
The current mochify implementation is dated and does not support the latest webdriver protocols.
Solution - optional
The new mochify implementation works with pluggable drivers. The
@mochify/driver-webdriver
uses the officialwebdriver
module internally.Interestingly, this successfully runs tests in Safari (although there are failing tests), but I'm having trouble running tests in Firefox and Edge.New Mochify development happens on the
rewrite
branch here: https://github.com/mantoni/mochify.js/tree/rewrite