Skip to content

Fix halt test - #1318

Open
sonic16x wants to merge 5 commits into
masterfrom
fix-halt
Open

Fix halt test#1318
sonic16x wants to merge 5 commits into
masterfrom
fix-halt

Conversation

@sonic16x

Copy link
Copy Markdown
Contributor

Add exit for test when halt and also add pass error to test in this case.

@pkg-pr-new

pkg-pr-new Bot commented Aug 23, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/gemini-testing/testplane@1318

commit: 5f28693

@github-actions

github-actions Bot commented Aug 23, 2026

Copy link
Copy Markdown

✅ Testplane E2E run succeed

Report

@github-actions

github-actions Bot commented Aug 23, 2026

Copy link
Copy Markdown

✅ Testplane browser-env run succeed

Report

Comment thread src/testplane.ts

this._fail();

signalHandler.emit(MasterEvents.EXIT, err);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why is this one needed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Need for send event to reporter

@shadowusr shadowusr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'd wait with this one until issues in gemini-testing/html-reporter#800 are resolved.

@sonic16x
sonic16x force-pushed the fix-halt branch 2 times, most recently from 57ee3ab to 974af3d Compare August 25, 2026 21:51
Comment thread src/utils/format-error.ts Outdated
@@ -0,0 +1,15 @@
export const formatError = (err: Error): Error => {
const TRIM_MARKERS = ["Tests were stopped by the user"];

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Remove stack for some errors, now only for force stop

super(stateName, currImg, refImg);

this.message = `can not find reference image at ${this.refImg.path} for "${stateName}" state`;
this.stack = undefined;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Remove stack for no ref image error

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

imho error formatting should happen on reporter's side, not on the source side. This affects both this error and tests were stopped by user error. But that's not critical. Just more clean in my opinion — the source should give full info, the receiver should filter what's needed.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Removed here

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Now realized on reporter side, also for 429 and no ref image errors

@sonic16x
sonic16x force-pushed the fix-halt branch 3 times, most recently from b26bdb3 to f85b4e4 Compare September 11, 2026 02:53
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.

2 participants