jj.github.io/curso-tdd/temas/tests-unitarios-organización
use Test::More;
unless ( $ENV{'TRAVIS_PULL_REQUEST'} =~ /\d/ ) {
plan skip_all => "Check relevant only for PRs";
}
import pytest
from Project.Issue import Issue, IssueState
PROJECTNAME = "testProject"
ISSUEID = 1
@pytest.fixture
def issue():
issue = Issue(PROJECTNAME,ISSUEID)
return issue
def test_is_open_when_created(issue):
assert issue.state == IssueState.Open
func TestMain(m *testing.M) {
ReadsFromFile("./hitos_test.json") // Alternative test file
os.Exit(m.Run())
}
agil.yaml
test:
- tests/fichero-test.jl
aserciones: "@test"