def test_using_dash_all(args, build_worktree, monkeypatch): """ Test Usin Dash All """ world_proj = build_worktree.create_project("world") hello_proj = build_worktree.create_project("hello") world_proj.configure() hello_proj.configure() args.all = True monkeypatch.chdir(build_worktree.root) test_runners = qitest.parsers.get_test_runners(args) assert len(test_runners) == 2
def test_coverage_in_build_worktree(args, build_worktree, monkeypatch): """ Test Coverage In Build WorkTree """ world_proj = build_worktree.create_project("world") world_proj.configure() monkeypatch.chdir(world_proj.path) args.coverage = True test_runners = qitest.parsers.get_test_runners(args) assert len(test_runners) == 1 test_runner = test_runners[0] assert test_runner.cwd == world_proj.sdk_directory assert test_runner.coverage