Is there a way of resetting QUnit tests without reloading the page ?
On the documentation it says that QUnit.init( ) reinitializes if it was already initialized, but this doesn’t seem to work.
I get a message “Running…” where the result should be.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Wrap all your tests inside a function.
Call the function when you’re ready for the test to run.
If you want to rerun the test after QUnit has finished, then make and call a function like ‘rerunQUnitTest’.