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

Wish: Allow ESCAPE during testing #18

Open
mikepotjer opened this issue Jan 3, 2019 · 2 comments
Open

Wish: Allow ESCAPE during testing #18

mikepotjer opened this issue Jan 3, 2019 · 2 comments

Comments

@mikepotjer
Copy link
Contributor

Enhance the test runner to SET ESCAPE ON and trap for the user pressing the ESCAPE key. I believe this should also cause that test to fail, and log an error message indicating that the user pressed ESCAPE.

This would be useful for scenarios where someone (who is probably not you, of course) accidentally created an infinite loop in code being tested. Instead of having to kill VFP and start over, the developer can abort the test and correct the problem in a normal refactor cycle.

@mikepotjer
Copy link
Contributor Author

I would probably implement something like my ESCAPE handler code to trap for the ESCAPE key in the test runner. I posted the code for that in this Gist entry:
https://gist.github.com/mikepotjer/43a1f244cc90531095d93cb2367cf4c8

If someone other than me implements this feature, they have unrestricted permission to use this code.

@eselje
Copy link
Collaborator

eselje commented Jan 3, 2019 via email

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

No branches or pull requests

2 participants