Skip to content

Fix halt test - #1318

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

Fix halt test#1318
sonic16x wants to merge 2 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: 2cdbeae

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

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