Posts

Showing posts from March, 2018

Testing in open source projects

Image
This week in our open source class we learned about the new javascript or should I say ECMAscript. So what is ECMAscript? ECMAscript is a standardize javascript to foster multiple independent implementation. It is mostly used for client-side scripting and is used in modern web technologies like node.js and react - redux frameworks. A well way to contribute to open source project for beginners are coding testing scripts, build development and QA. I had a look at the ECMAscript test suite experimental harness https://github.com/bterlson/test262-harness This test suite allows users to unit test for function in javascript. So after setting up the environment , I ran the test using the code test262-harness test/**/*.js As we can see out of the 205 tests , 199 passed and 6 failed. The error shows problems with using strict mode. After that I updated some of the test : // Test 1 assert . sameValue (reverse, x, " value is not equal " ); // Test 2 assert .