Hlola Ukusabalala

Umbuzo: Ikhodi ihlolwe kahle kangakanani?

Incazelo

Ukuhlolwa kuchaza ukuthi ingakanani isisekelo sekhodi esinikeziwe esimbozwa okungenani yi-test suite eyodwa. Kunezinyathelo ezimbili eziyinhloko zokufakwa kokuhlolwa. Elinye iphesenti le ama-subroutines imbozwe ku-test suite eqhudelana nenqolobane. Okunye ukuvezwa komgomo wokufakwa kokuhlolwa iphesenti le izitatimende embozwe ngesikhathi sokwenziwa kwe-test suite. Incazelo yemethrikhi ye-CHAOSS "Yokumbozwa Kokuhlola" ihlanganisa zombili lezi zinyathelo ezihlukene.

Izilimi zokuhlela zibhekisela ku ama-subroutines ikakhulukazi "njengemisebenzi", "izindlela", "izinqubo" noma, kwezinye izimo, "izinhlelo ezingaphansi." Amaphesenti okufakwa kwekhosombe elithile avinjelwe kule ncazelo ezindleleni ezichazwe ngaphakathi kwendawo yokugcina ethile, futhi ayifaki ukumbozwa kwemitapo yolwazi noma enye isofthiwe lapho inqolobane incike khona.

Izinhloso

Ukuqonda izinga lokufakwa kokuhlolwa kuyisignali yekhwalithi yesofthiwe. Ikhodi enokufakwa okuncane kokuhlola ikhombisa ukuthi kungenzeka inkambiso yobunjiniyela besofthiwe engaqinile kanye namathuba akhulayo ahambisanayo okuthi amaphutha azotholwa lapho kuthunyelwa futhi kusetshenziswa.

Implementation

Ukusetshenziswa nokusatshalaliswa kwamamethrikhi ezempilo kungase kuholele ekwephuleni ubumfihlo. Izinhlangano zingase zichayeke ezingozini. Lezi zingozi zingase zigeleze kusukela ekuthobeleni i-GDPR e-EU, nomthetho wezwe wase-US, noma nomunye umthetho. Kungase futhi kube nezingozi zenkontileka ezivela kumigomo yesevisi kubahlinzeki bedatha njenge-GitHub ne-GitLab. Ukusetshenziswa kwamamethrikhi kufanele kuhlolwe ubungozi kanye nezinkinga zedatha yezimiso zedatha ezingaba khona. Ngicela ubone Idokhumenti ye-CHAOSS Data Ethics ukuze uthole isiqondiso esengeziwe.

Izitatimende zifaka izabelo eziguquguqukayo, izimemezelo ze-loop, izingcingo eziya emisebenzini yesistimu, izitatimende zokuthi "iya ku-" kanye nezitatimende ezijwayelekile. return isitatimende lapho kuqedwa umsebenzi noma indlela, engafaka noma ingafaki ukubuyiselwa kwe-a value or array of values.

I-Subroutine Coverage

I-Subroutine Coverage

Ukusabalala kwesitatimende

Ukusabalala kwesitatimende

Izihlungi

  • Isikhathi: Izinguquko ekufakweni kokuhlolwa ngokuhamba kwesikhathi zinikeza ubufakazi bokunaka kwephrojekthi ekwandiseni ukumbozwa kokuhlolwa okupheleleyo. Imingcele ethile ihlanganisa start date futhi end date okwesikhathi.
  • I-Code_File: Inqolobane ngayinye iqukethe inani lamafayela aqukethe ikhodi. Ukuhlunga ukumbozwa ngefayela elithile kunikeza ukubuka okunembudumbudu okwengeziwe kokufakwa kokuhlolwa. Eminye imisebenzi noma izitatimende zingase ziholele ekuhlulekeni okukhulu kwesofthiwe kunezinye. Isibonelo, ikhodi engahloliwe ku- fail safe imisebenzi yesistimu ebaluleke kakhulu yokuphepha ibaluleke kakhulu ukuhlolwa kuno font color ukuhlolwa komsebenzi.
  • Programming_Language: Iningi lamakhosombe esofthiwe yomthombo ovulekile wamanje aqukethe izilimi zokuhlela ezimbalwa. Iphesenti lekhava ngayinye Code_File

Amathuluzi Ahlinzeka Ngemethrikhi

Okubhekwayo

  1. JH Andrews, LC Briand, Y. Labiche, kanye no-AS Namin. 2006. Ukusebenzisa Ukuhlaziya Ukuguqulwa Kokuhlola Nokuqhathanisa Imibandela Yokuhlanganisa Ukuhlola. I-IEEE Transactions on Software Engineering 32, 8: 608–624. https://doi.org/10.1109/TSE.2006.83
  2. UPhyllis G Frankl no-Oleg Iakounenko. 1998. Izifundo Eziqhubekayo Zokusebenza Kokuhlolwa Ngempumelelo. Ezinqubeni ze-6thACM SIGSOFT International Symposium on Foundations of Software Engineering, 153–162.
  3. UPhyllis G Frankl noStewart N Weiss. 1993. Ukuqhathaniswa Kokuhlola Ukusebenza Kokuhlolwa Kwegatsha kanye Nokuhlola Ukugeleza Kwedatha. EEE Transactions on SoftwareEngineering 19, 8: 774–787.
  4. ULaura Inozemtseva noReid Holmes. 2014. Ukufakwa akuhlobene kakhulu nokusebenza kwe-test suite. Ezinqubeni Zengqungquthela Yamazwe Ngamazwe Yama-36 Yobunjiniyela Besoftware - ICSE 2014, 435–445. https://doi.org/10.1145/2568225.2568271
  5. U-Akbar Siami Namin noJames H. Andrews. 2009. Umthelela wosayizi nokuhlanganisa ekusebenzeni kwe-test suite. Ezingqungqutheleni ze-symposium yeshumi nesishiyagalombili yamazwe ngamazwe yokuhlolwa nokuhlaziywa kwe-Software - ISSTA '09, 57. https://doi.org/10.1145/1572272.1572280