-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Upgrade to QUnit 2.x #1359
Comments
I totally agree. The refactoring effort for OpenUI5 is no longer our main concern. The real problem is that the We therefore consider to deviate from our normal practice (package only one version of each thirdparty software) and add a Your next question most likely is: "When will you add it?". Any new open source that we add has to go through some internal approval process. Not sure what the status is for Qunit 2.0. I'll try to find out and update this issue. |
excellent, good approach to have QUnit 1 + 2 co-exist. |
The internal approval process for including QUnit 2.1.1 has been started and a corresponding change has been prepared. We'll update this issue once there is significant progress. |
Adding "approved" to say this will happen without further need to drive something |
i am currently working on updating the tests, will post more details soon |
Update: openui5 code base (all unit tests) have been lifted to QUnit 2.0 syntax now (phew that was some work). Real Migration to QUnit 2.0 is still pending though as we have some hard dependencies to dissolve first |
This change adds QUnit 2.3.2 in addition to the current QUnit 1.18.0, in order to allow step-by-step migration of test cases in all layers. Fixes #1359 . Details: qunit / qunit-2 - add QUnit 2.3.2 and its CSS, add CSS wrapper module, update 3rdparty info sinon-qunit bridge - no longer use the abandoned signature variant of QUnit.test() - design time dependency is still to qunit.js for compatibility reasons qunit-junit - abandon legacy globals ("assert", "raises", "equals") when qunit-2 is used QUnitUtils - abandon legacy globals ("raises") when qunit-2 is used - don't configure QUnit.config.reorder when qunit-2 is used TestUtils - QUnit.push has been removed, use QUnit.assert.push (also deprecated!) Opa - no longer use the abandoned signature variant of QUnit.test() - after a QUnit timeout, Opa must no longer call the assert.async() - QUnit.throws no longer accepts string literal as 'expected' TestRunner - failed to parse the test results from the DOM (with QUnit 2, there's more than one <strong> tag in each test case) Tests - fully migrate Opa's own tests to QUnit 2.0 APIs - Execute Opa's own tests for both, QUnit 1.x and QUnit 2.x - timeout test failed to extract assertion messages (also has extracted any 'diff' messages) Change-Id: I1e6748405e95e87d0478e72eecdc0566bd8dbba4 JIRA: CPOUIFPHOENIXCORE-1783 (cherry picked from commit 33c3583) CR-Id: 002075125900001531432017
Hi,
all UI5 versions (have checked up to 1.44.7) are still using QUnit 1.18.0.
Having QUnit 2.x available would at a minimum allow us to use these really helpful features:
I've seen some discussion in #1105 to eventually go for an upgrade - wanted to +1 this with this enhancement-issue.
Sure there might be refactoring efforts involved, but only the above two listed features make up for that :)
Best, Volker
The text was updated successfully, but these errors were encountered: