結(jié)合之后,如何運(yùn)行呢?比如我在unitetest的基礎(chǔ)上洼滚,使用了pytest的mark功能:@pytest.mark.smoke良拼, 請(qǐng)求跷车,要執(zhí)行用例的時(shí)候担映,是怎么指定mark執(zhí)行嘱蛋?
pytest和unittest兼容如何結(jié)合unittest的優(yōu)點(diǎn): 是標(biāo)準(zhǔn)庫(kù) 容易理解 容易維護(hù) pytest的優(yōu)點(diǎn): 自動(dòng)發(fā)現(xiàn)用例,不像unittest需要加入測(cè)試套件suite 2.斷言簡(jiǎn)單媒抠,只需要關(guān)鍵字asse...