Skip to content

move ember debug tests into own app#2642

Open
patricklx wants to merge 11 commits intoemberjs:mainfrom
patricklx:split-out-ember-debug-tests
Open

move ember debug tests into own app#2642
patricklx wants to merge 11 commits intoemberjs:mainfrom
patricklx:split-out-ember-debug-tests

Conversation

@patricklx
Copy link
Copy Markdown
Collaborator

@patricklx patricklx commented May 21, 2025

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.

@patricklx patricklx force-pushed the split-out-ember-debug-tests branch from ea8f7dd to c38d0f0 Compare May 22, 2025 08:24
@patricklx patricklx requested a review from RobbieTheWagner May 22, 2025 11:24
@BlueCutOfficial
Copy link
Copy Markdown
Contributor

Since this PR changes the usage of ember-try in the repo, I would be tempted to add ember-lts-5.12 to the configuration (and it's green locally ✅) IMO that could be a good iteration before investigating 6.x in a later PR :)

@patricklx patricklx force-pushed the split-out-ember-debug-tests branch 4 times, most recently from 1df0de2 to 24127a0 Compare May 30, 2025 20:48
@patricklx patricklx closed this May 31, 2025
@patricklx patricklx reopened this May 31, 2025
@patricklx patricklx force-pushed the split-out-ember-debug-tests branch from ed1d1b6 to f15771c Compare June 1, 2025 15:39
@patricklx patricklx closed this Jun 1, 2025
@patricklx patricklx reopened this Jun 1, 2025
@patricklx patricklx force-pushed the split-out-ember-debug-tests branch from ae33cb7 to b085545 Compare June 1, 2025 16:44
<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>
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here we inject ember debug into the test app

@patricklx patricklx force-pushed the split-out-ember-debug-tests branch 4 times, most recently from de7b45d to c238b51 Compare June 2, 2025 08:08
@patricklx patricklx changed the title move ember debug tests into own app move ember debug tests into own app & fix tests Jun 2, 2025
@patricklx patricklx force-pushed the split-out-ember-debug-tests branch 2 times, most recently from 7d97550 to 2bf5316 Compare June 3, 2025 10:08
Copy link
Copy Markdown
Contributor

@BlueCutOfficial BlueCutOfficial left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)

@patricklx patricklx requested a review from mansona June 4, 2025 07:38
@BlueCutOfficial BlueCutOfficial self-requested a review June 25, 2025 07:37
@patricklx patricklx force-pushed the split-out-ember-debug-tests branch from 6659f91 to 850d0a8 Compare June 25, 2025 07:37
@BlueCutOfficial
Copy link
Copy Markdown
Contributor

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.

@patricklx patricklx force-pushed the split-out-ember-debug-tests branch from 850d0a8 to a13f486 Compare October 6, 2025 21:17
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a copy of inspector-ui app service to setup communication with ember-debug

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a copy of inspector-ui app service to setup communication with ember-debug

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we use the code directly from the inspector?
otherwise are we testing much of the inspector?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the tests are separate for ui and ember_debug

@patricklx patricklx force-pushed the split-out-ember-debug-tests branch 3 times, most recently from a5cfae1 to f673d10 Compare October 7, 2025 14:29
@ef4
Copy link
Copy Markdown
Contributor

ef4 commented Oct 7, 2025

@BlueCutOfficial @mansona has this addressed the previous comment about rebasing on the other adapter work?

@patricklx patricklx force-pushed the split-out-ember-debug-tests branch from f673d10 to 019b6f0 Compare February 26, 2026 08:50
@patricklx patricklx force-pushed the split-out-ember-debug-tests branch from 019b6f0 to a3020a0 Compare February 26, 2026 08:52
let operator = specifier[0];
if (Number.isNaN(+operator)) {
specifier = specifier.slice(1);
} else {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's this for?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was a leftover from local testing, but i will make another PR for it.

@NullVoxPopuli
Copy link
Copy Markdown
Contributor

@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)

@patricklx
Copy link
Copy Markdown
Collaborator Author

@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.
I only copied an adapter from inspector ui part to the test app. Because ember_debug needs that.

patricklx and others added 9 commits March 3, 2026 10:30
Remove commented eslint disable line and adjust formatting.
- 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants