Be careful when using loops in Jasmine specs

Your test automation code is an important tool to evaluate your application. You must ensure your test code is working/testing as you want it to be. the automated tests give confidence for the developer that the application behaves as expected and things are not broken after they change the code. Recently, at our QA phase, the QA found a bug that should have been caught from our test automation. Therefore being suspicious I looked into the code....

February 1, 2017 · Sinaru Gunawardena

Jasmine Best Practices

The file name should be Matching for the top level test suite name. There should be one top level test suite per file. Give a meaningful name or title for the test suite. Either use var or this to define variables that needs to use across tests. var variables should be placed just below the top describe (test suite) Use setup and teardown methods to perform common variable initializations and functionalities....

February 29, 2016 · Sinaru Gunawardena