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

QUnit 3.0 Roadmap #1498

Open
12 of 14 tasks
Krinkle opened this issue Nov 7, 2020 · 7 comments
Open
12 of 14 tasks

QUnit 3.0 Roadmap #1498

Krinkle opened this issue Nov 7, 2020 · 7 comments
Assignees
Labels
Category: Release Type: Meta Seek input from maintainers and contributors.

Comments

@Krinkle
Copy link
Member

Krinkle commented Nov 7, 2020

In our usual way, QUnit 3.0 will be a trivial release that adds no features, but only removes deprecated functionality and/or changes default settings.

Users should be able to update to the latest QUnit 2.x release and get all the same new capabilities. Anything that passes on the latest QUnit 2.x without warnings must pass on QUnit 3.0. Anything we want to change in QUnit 3.0 should be deprecated or issue warnings on QUnit 2.0 so that users can gradually address these warnings, and then perform an super simple, uneventful, upgrade to QUnit 3.0.

Before QUnit 3 development starts

QUnit 3 development

Notable changes:

Other work:

Other ideas

@Krinkle Krinkle added Category: Release Type: Meta Seek input from maintainers and contributors. labels Nov 7, 2020
@Krinkle Krinkle pinned this issue Jan 2, 2021
@Krinkle
Copy link
Member Author

Krinkle commented Jul 26, 2021

I've added:

@Krinkle
Copy link
Member Author

Krinkle commented Sep 9, 2021

Another thing, the HTML UI is currently unable to report global failures from before the first test in the UI because the qunit-tests element is created from QUnit.begin() which naturally fires just after the tests have been loaded, not before.

I'd like to address this by having the UI initialise right away instead of waiting for QUnit.begin(). Given how tight some wrappers and integrations are, though, I propose we do this in QUnit 3.0 rather than now.

@Krinkle
Copy link
Member Author

Krinkle commented Feb 16, 2022

I propose the following for QUnit 3 as well:

  • Remove support for Node.js 10, require Node.js 12+.

@NullVoxPopuli
Copy link
Contributor

may as well add removing node14 by now, too.

but anywho, reason why I came here is --- ESM.

Currently, the qunit package is not valid, and rollup will error if it tries processing imports of qunit.
Is this something that we need to wait for QUnit 3 to fix? or can we fix in v2?

@Krinkle
Copy link
Member Author

Krinkle commented Sep 1, 2023

@NullVoxPopuli That sounds like something we can fix in a minor release.

If I understand correctly, you're looking to import qunit and embed within a larger bundle? I've not tried to do that myself, but in terms of loading it over ESM, that seems to work in both browsers and Node.js. E.g. in browsers await import("https://code.jquery.com/qunit/qunit-2.19.4.js"); results in QUnit being defined, and in Node.js, import('qunit'); returns the QUnit API.

Could you file a bug report with details on where it currently fails?

@NullVoxPopuli
Copy link
Contributor

sounds good: #1724

can we change the whole package to use modern JS? I see IIFE, and non-class usage when it looks like it really wants to be using classes.
I'm willing to make PRs, add tests, etc.

and for v3, can we extract non-browser utils to like a @qunit/cli or something?

@Krinkle Krinkle self-assigned this May 29, 2024
@lifeart
Copy link

lifeart commented Oct 28, 2024

It will be really handy to have builtin retry as in playwright-test - https://playwright.dev/docs/test-retries
Related issue: #1572
Related qunit addon: https://github.com/mrloop/QUnit-retry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Release Type: Meta Seek input from maintainers and contributors.
Development

No branches or pull requests

4 participants
@Krinkle @NullVoxPopuli @lifeart and others