-
-
Notifications
You must be signed in to change notification settings - Fork 0
Tutorial
Rodolfo Dirack edited this page Nov 27, 2021
·
9 revisions
Esta é a asserção mais simples da shellunity. A chamada TEST_PASS faz o teste passar. Basta utilizar como no exemplo a seguir, a primeira linha do script carrega a biblioteca a segunda linha faz um teste passar:
source shellunity
TEST_PASSExperimente colocar o código anterior em um script chamado 'testeshellunity.sh', dar permissão de execução e rodar com o seguinte comando do shell:
chmod +x testeshellunity.sh
./testeshellunity.shRodolfo Dirack - @dirack – rodolfo_profissional@hotmail.com
Todos os direitos reservados - Distribuído sob a licença GPL3. Veja LICENSE para mais informações.