move ember debug tests into own app#2642
Conversation
ea8f7dd to
c38d0f0
Compare
|
Since this PR changes the usage of |
1df0de2 to
24127a0
Compare
ed1d1b6 to
f15771c
Compare
ae33cb7 to
b085545
Compare
| <script src="{{rootURL}}assets/vendor.js"></script> | ||
| <script src="{{rootURL}}assets/test-support.js"></script> | ||
| <script src="{{rootURL}}assets/test-app.js"></script> | ||
| <script src="{{rootURL}}ember_debug.js"></script> |
There was a problem hiding this comment.
here we inject ember debug into the test app
de7b45d to
c238b51
Compare
7d97550 to
2bf5316
Compare
BlueCutOfficial
left a comment
There was a problem hiding this comment.
To be fair I don't understand 100% all the details of all the changes so I would use at least one second opinion (cc @mansona) but this iteration looks fine IMO. The general approach to separate UI tests and ember_debug tests makes sense to me + fixing all the ember-try scenarios recreates more confidence in the test suite.
(Purely on the form, I think enabling 6+ and fixing 3.16~3.24 could have been done in 2 separated PRs, but I woundn't consider this a blocker since the commit stack is clean)
6659f91 to
850d0a8
Compare
|
Hi @patricklx, I've an update about this PR. @mansona has initiated a task to improve the "start wrapper" part of the inspector, based on his work on Rollup. This would enable the possibility of importing an adapter, so we wouldn't have to re-implement an adapter in each test app. We suggest keeping the present PR on hold until Chris has finished that work, then we can rebase and include this improvement. |
850d0a8 to
a13f486
Compare
There was a problem hiding this comment.
a copy of inspector-ui app service to setup communication with ember-debug
There was a problem hiding this comment.
a copy of inspector-ui app service to setup communication with ember-debug
There was a problem hiding this comment.
can we use the code directly from the inspector?
otherwise are we testing much of the inspector?
There was a problem hiding this comment.
All the tests are separate for ui and ember_debug
a5cfae1 to
f673d10
Compare
|
@BlueCutOfficial @mansona has this addressed the previous comment about rebasing on the other adapter work? |
f673d10 to
019b6f0
Compare
019b6f0 to
a3020a0
Compare
ember_debug/utils/version.js
Outdated
| let operator = specifier[0]; | ||
| if (Number.isNaN(+operator)) { | ||
| specifier = specifier.slice(1); | ||
| } else { |
There was a problem hiding this comment.
was a leftover from local testing, but i will make another PR for it.
|
@patricklx from DMs with @mansona -- @mansona says that we probably don't want new adapters -- some things got extracted to a real package which should help clean things up (I dunno what this means rn, but hopefully it makes sense) |
I am not sure what this is about. I did not add new adapters to ember _debug. |
- Created mock-basic-adapter.js with singleton pattern - Created mock-web-extension-adapter.js with singleton pattern - Updated test-adapter.js to extend MockBasicAdapter - Updated injection-test.js to use getMockWebExtensionAdapter() - Original adapters kept in place as they are required for injection tests
ember debug is the thing that should/can be tested with older ember versions.
for inspector ui its not required. we can extend it for it as well though.