Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contoh Implementasi Unit Testing dengan Pytest di Github Action

test

@djiwandou, Praktisi Mengajar, 13-Desember-2023, @UISI (Universitas Internasional Semen Indonesia)

Project ini menjelaskan bagaimana menjalankan unit testing secara otomatis menggunakan PyTest python dan Github Actions

Requirements

  • Python (3.10.10)

Untuk run di local

Harap install dependencies melalui file requirements.txt

pip install -r requirements.txt

Kalau belum ada pip terinstall, harap menginstall pip dulu dengan mengikuti referensi online.

How To Run the Unit Tests

Untuk menjalankan unit test bisa run command berikut

pytest -v -s

Hasil run di local

rec_pytest

Hasil run di github actions

rec_github_actions

Coverage Status

About

Contoh implementasi pytest unit testing dengan CICD github action

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages