Spectory Blog

Unit test principles

By Bar B, Jan 11 2018

The most obvious answer is to check that the code we write works the way we intended. Now this is true and a good reason to write unit tests but i think the best thing you earn from writing unit tests is preventing your code from breaking. If someone break your code he’ll know about it once the amazing unit tests you wrote fail.

Read More

Test Suites Robustness

By Guy Y, Dec 14 2017

There are a lot of great benefits from unit testing .

Read More

It's time to discover Redux Dev Tools

By Tomer S, Apr 3 2017

"The washing machine" is a familiar syndrome. This syndrome is about peoples' preferences while choosing the functionality of the program in their washing machine.  Most people choose the same program they are used to, and it is usually the standard program. This syndrome happens in many subjects, one of them  in my opinion is redux dev tools.    As a SW developer and especially as a full-stack developer,  one major professionality is the ability to debug the state of your application. In this article, I will try to touch not only the "30-40 degrees" program of redux dev tools, but also the other functions including the "100 degree-cotton". The adds-on of 'redux dev tools' is a great tool for interpreting and debugging the application state. I will explain about the chrome extension, but it is also available on Firefox and electron, and can be used as a remote for other browsers and non-browser environments. The review of adds-on features will be top to bottom.  

Read More

Async tests with mocha in node

By Amitai B, Nov 3 2016

Node JS is Asynchronous. It's a pain. It’s a pain developing this way and it’s a pain writing tests for this framework.

Read More

Factory girl the Story of Goldilocks and the Three Bears

By Tomer S, Sep 29 2016

Just like in the story of Goldilocks and the Three Bears, in our code- guests are welcome, mystery guests aren't.   While we are testing our application , we need to challenge the logic and design of our code. In order to do so efficiently we will increase the power of our unitests by making it faster and by testing all parts of the code. Testing is an integral part of code writing. Unitests of Web applications need to test both the server side and the client side. The challenge of testing the server side is the decrease in performance speed due to the writing to database. As a Full Stack developer it is very important to conduct the tests in a convenient way, without compromising on quality. This is the main goal of FactoryGirl.      

Read More