Cov txheej txheem:

Kuv yuav ua li cas thiaj pab tau cov cai hauv IntelliJ?
Kuv yuav ua li cas thiaj pab tau cov cai hauv IntelliJ?

Video: Kuv yuav ua li cas thiaj pab tau cov cai hauv IntelliJ?

Video: Kuv yuav ua li cas thiaj pab tau cov cai hauv IntelliJ?
Video: kablia vwj poj niam li kuv tau mus lawm tsis rov los Nkaujtawm tshiab 2021-2022 2024, Kaum ib hlis
Anonim

Configure code coverage cwj pwm?

  1. Nyob rau hauv tej chaw/Preferences dialog Ctrl+Alt+S, xaiv Tsim, Ua, Deployment | Kev pab them nqi .
  2. Txhais li cas cov khoom sau kev pab them nqi cov ntaub ntawv yuav raug ua tiav:
  3. Xaiv qhov qhib Kev pab them nqi Saib checkbox kom qhib lub Kev pab them nqi cuab tam qhov rais txiav.

Tib neeg kuj nug, Kuv yuav ua li cas qhia qhov kev xeem hauv IntelliJ?

Los ntawm cov ntawv qhia zaub mov tseem ceeb, xaiv Khiav | Qhia Kev Pabcuam Cov ntaub ntawv (Ctrl + Alt + F6). Hauv Xaiv Kev pab them nqi Suite rau Zaub dialog, xaiv lub checkboxes ib sab ntawm cov suites tsim nyog, thiab nyem Qhia xaiv. Nyob rau hauv lub editor, IntelliJ IDEA qhib kuaj kev pov hwm tshwm sim rau cov xaiv xeem suites.

Tom qab ntawd, lo lus nug yog, kuv yuav nrhiav tau li cas code? Qhov yooj yim ntsuas ntawm Kev Pabcuam Code yog " Kev pab them nqi Yam khoom ", uas tuaj yeem los ntawm txhua yam peb tau suav thiab saib seb nws puas tau sim los tsis tau. Kev ntsuas ntawm Kev pab them nqi tuaj yeem txiav txim siab los ntawm cov qauv hauv qab no. Kev pab them nqi = Number of kev pab them nqi cov khoom siv / Tag nrho cov naj npawb ntawm kev pab them nqi cov khoom * 100%.

Ib yam li ntawd, nws raug nug, IntelliJ khiav kev pab them nqi dab tsi?

Khiav tes nrog kev pab cuam IntelliJ yuav khiav chav xeem nrog cov kev pab them nqi kev xaiv rau. Hauv kev pab them nqi qhov rais koj tuaj yeem pom qhov tshwm sim. Nws yuav qhia qhov feem pua ntawm cov lej tau ua npog los ntawm kev xeem. Koj tuaj yeem pom cov kev pab them nqi tshwm sim nyob rau hauv chav kawm, txoj kev los yog kab hauv paus.

Code Coverage txhais li cas?

Code kev pab them nqi yog Kev ntsuas ntawm pes tsawg kab / blocks / arcs ntawm koj code raug tua thaum cov kev xeem automated khiav. Code kev pab them nqi yog tau sau los ntawm kev siv cov cuab yeej tshwj xeeb los ntsuas cov binaries ntxiv rau kev hu xov tooj thiab khiav tag nrho cov kev ntsuas tsis siv neeg tawm tsam cov khoom siv.

Pom zoo: