Skip to main content

Screencast : Unit Testing With PHPUnit



hello guys, here we are. we will learn about testing like unit test or test driven development, but in this case we will learn about unit test using phpunit. we know that phpunit is the framework test that very popular for web development instead of the other testing framework like laravel dust. or something else.

in this case, i want to share with you all about screencast that much benefit for you that courious about to learn testing. before that, is you know how the test work? is it we clicked all website or something? NO!!. test work using console and its work when we code our test to achieve something. like when we assert to login or register we code that assert must be achieve true or something else response to be "success" or "200".

what is benefit if we use unit test in our project? 
1. it much easier to test 
2. it decrease error before our project up to production
3. it make our project more maintainable.
4. it make us more profesional :D

what is disanvantages of using unit test?
1. more code to write
2. more hour to end up your project
3. more hard to code

so, i think if you choose to be more profesional developer, you should choose using unit test from now.  goodluck!

in this morning i got ten screencast free about unit test from youtube. i think it whorted for you. its teach us step by step and very easy to learn. here we go, look at the list video in the bellow.

















congrats guys.. hope you enjoy this tutorial and that screencast above. thankyou verymuch ^_^

Popular posts from this blog

OpenVPN Alternatif Solusi Menanggulangi Blokir dari KOMINFO

Sejak akhir juli 2022 kemaren indonesia di gegerkan dengan tindakan kominfo atas diblokirnya banyak platform digital karna tidak mendaftar PSE, terutama paypal dan plaform game (steam, epic game dll). keputusan ini semakin membuat netizen geram dikarenakan platform judi online malah disetujui untuk beroperasi karna sudah daftar PSE. Jujur menurut saya memang keputusan ini sejak awal saya dengar sudah mengada-ada karna sangat aneh memblokir semua platform digital yang jumlahnya tidak terhitung banyaknya dan hanya membolehkan akses platform yang sudah mendaftar yang jumlahnya hanya ratusan.  saya sebagai developer juga merasa aneh banget ini kebijakan apalagi platform development juga banyak yang di blacklist oleh kominfo seperti, github, gitlab, bitbucket, even website CDN pun di blacklist. astaga wkwkwk. anyway terlepas dari kebijakan konyol ini, saya mau berbagi tips cara agar tetep bisa mengakses semua platform tersebut tanpa ada halangan, yaitu dengan menggunakan VPN. banyak ban...

Laravel Blade : Perbedaan IF dan UNLESS

bill.web.id , hello guys, beberapa hari lalu saya bikin module laravel buat summerschool di kampus saya, karna bikin module nggk boleh asal asalan akhirnya saya coba review lagi dokumentasi laravel, pas nyampe bab blade template engine saya mendapati beberapa directive baru salah satunya yaitu unless. directive baru ini sama sama ada di kelas percabangan, menemani if else, nah sekarang pertanyaannya adalah bedanya unless dengan if else apa?. Baca juga : Laravel Library : Chatter Forum Laravel Library oke, jika kalian disini sudah faham tentang apa itu if else, maka unless adalah kebalikan dari if else . contoh : @if(auth::check()) {{ "it will printed when user was loged in" }} @endif note : kalimat di dalam percabangan akan di cetak apabila percabangan bernilai true @unless(auth::check()) {{ "it will printed when user was not loged in" }} @endif note : kalimat di dalam percabangan akan di cetak apabila perca...

Laravel Database : Membuat Jutaan Data Dummy Menggunakan Faker Generator di Laravel

faker generator adalah salah satu library magic yang build in di laravel, dengan menggunakan library ini kita bisa membuat puluhan, ratusan bahkan jutaan data dummy dengan hanya sekali pukul. udah kebayang belom? kalo belom kita langsung aja masuk ke praktiknya. like foolest people gonna smart when use faker oke guys, lets do this. pertama tama, liat diagram berikut yak, biar runtut langkah langkahnya naah langkah runtutnya kurang lebih seperti ini  create migration->model->faker->seeder->execute->test oke guys, mari kita buat migrationnya, studi kasus yang mau kita buat adalah membuat artikel blog dengan table sederhana seperti berikut 1. ketikkan perintah berikut di terminal php artisan make:migration artikel  2. buka file migrationnya di folder database>migration>[nama migration] 3. ketikkan perintah berikut di terminal php artisan migrate oke guys hasilnya nanti akan seperti ini setelah lang...