Skip to content
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

Add the ability to self report a crash #255

Closed
chrisdp opened this issue Jan 20, 2024 · 1 comment · Fixed by #263
Closed

Add the ability to self report a crash #255

chrisdp opened this issue Jan 20, 2024 · 1 comment · Fixed by #263
Assignees
Labels
enhancement New feature or request

Comments

@chrisdp
Copy link
Collaborator

chrisdp commented Jan 20, 2024

When using a library like https://github.com/rokucommunity/promises users my want to be able to report a test as crashes them selfs. Consider this slimmed down example:

@async
@it("loginUser success path")
function _()
	m.node.top.isLoggedIn = false
	' Success Test
	promises.chain(loginUser({
		email: "[email protected]"
		password: "1234"
	})).catch(sub(error as dynamic)
		' Report that the test failed due to a crash
		m.testSuite.failCrash(error)
	end sub).finally(sub()
		m.testSuite.assertTrue(m.top.isLoggedIn)
		m.testSuite.done()
	end sub)
end function
@chrisdp
Copy link
Collaborator Author

chrisdp commented Jan 20, 2024

@georgejecook I don't mind taking this one. Logging it as an issue so I don't forget.

@chrisdp chrisdp self-assigned this Jan 20, 2024
@chrisdp chrisdp added the enhancement New feature or request label Jan 20, 2024
@chrisdp chrisdp linked a pull request Jan 22, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant