Skip to main content

Posts

Showing posts from June, 2019

How to setup Flutter

Clone  Open a terminal and clone the repository in your drive D:\. (Yes! I'm  windows user)  $ git clone -b https://github.com/flutter/flutter.git  I don't usually used drive C:\ because it requires elevated privileges. Download dependencies Locate the file flutter_console.bat inside flutter directory. Start it by double-clicking. This will download some additional tool like Dart SDK Environment variable Add or append D:\flutter\bin to the PATH environment variable under User variables . Run to the doctor!  $ flutter doctor  After running the flutter doctor. It returns some issue like Accept android licenses Dart and Flutter plugin not installed in Android Studio Fixing all these are optional but I recommend you to fix the first one by running the command  $ flutter doctor --android-licenses  That's all.

Basic Setup for Codeception Testing

This is how I setup my "lazy" Codeception testing environment globally. It might not that helpful but the main purpose is you will get the idea. Download Codeception Go to Codeception website and download the codecept.phar file. Or go to your terminal and wget https://codeception.com/codecept.phar Testing templates If you are doing Acceptance, REST API  and Unit Test then just run php codecept.phar bootstrap command. This will generate the tests folder and inside of it are all your folders for each particular test.    But if you are interested on one area of testing, let say for instance Unit Testing, then you may pick the 3rd command. Acceptance Testing codecept.phar init acceptance REST API Testing codecept.phar init api Unit Testing codecept.phar init unit From the templates given above. I'll be using the Unit Testing template for my simple example. You can find this in quickstart of Codeception website. Let's do the basic test. Initialize ...