Blog

Ghost Inspector. Automatic test in 0 minutes

2 minutes reading

“Let’s deploy, we’ll think about that on Monday”, is the Aggile Giggi‘s catchphrase, the italian funny parody of a rough developer on twitter.

Actually, we all risk to be Agile Giggi when we release in production if we don’t have tools and processes to make the deployment as safe as possible.

Let’s talk about testing. The risks associated with deployment can’t be reset but they can be reduced as much as possible by introducing automated tests into the workflow.

Easy to say, not so much to do it. What we want to suggest today is a starting point, a tool that allows you to have a good regression tests coverage in zero time and without excessive effort.

Ghost inspector

Ghost inspector is a good and low cost solution. With the free plan, you can run a hundred tests a month, not enough for regular use, but it’s a solid starting point.

From the Dashboard, we create a new Suite. Then we can run the various tests individually or one after the other.

Creating scenarios is very simple with a convenient Chrome extension that records user actions.

We can found our registered actions and statements in the Ghost inspector’s GUI, here they can be easily edited.

Tests can also be exported and imported into Selenium.

For each Suite we can define variables to use within the tests, or get them from elements in the DOM or, moreover, run our own Javascript.

 

After the tests, Ghost inspector provides details of the errors found in the console, a video of the running test, details of any failed tests, and also, in the case of regression, a screenshot comparison.

Without writing a line of code!

Tests can be run via API and embedded with lots of build and deploy tools in order to include testing in automated streams.

This platform is so much powerful, just take a look at the documentation to immediately realize the potential it has.

Testing is a broad and complex topic that we cannot exhaust just by suggesting a tool, but surely with Ghost Inspector when _“we’ll think about that on Monday”_ we can spend a weekend a little more peaceful  🙂

Irene Iaccio