Run each unit test in a new window

I use to define unit tests. I want each test to run in a new browser window. Using all tests run on the same page, and window .

The reason for running each test in a new window is because the test object is polluting the window object.

I know that this will affect the testing time. However, this is the price I am willing to accept.

+5
source share
1 answer

There is an open problem for the test fragment / parallelization, which seems to be in this direction, but it is not implemented and it does not seem to work, there is convincing proof of the concept.

Also, their current position in the team does not seem to support pollution of the global state in the form in which you propose.

If you want this feature soon, you probably have to create it and send a transfer request.

0
source

Source: https://habr.com/ru/post/1247977/


All Articles