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

Is it possible to know if a Test Case is currently running ? #18

Open
antoine2711 opened this issue Apr 12, 2024 · 1 comment
Open

Is it possible to know if a Test Case is currently running ? #18

antoine2711 opened this issue Apr 12, 2024 · 1 comment

Comments

@antoine2711
Copy link

I have some methods that call MessageBox, which stalls the execution of the Test Cases.

Is there a way that my function could know if it is called while a Test Case is being executed?

Regards, Antoine

@ktekinay
Copy link
Collaborator

I can't think of a good way, but my recommendation would be to split up the functions to separate out the processing from the UI elements, then test just those functions.

FYI, you can use the included ObjectSpy to test private functions.

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