Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remote coverage result all 0 #76

Open
jingyuezijing opened this issue Jan 27, 2022 · 1 comment
Open

remote coverage result all 0 #76

jingyuezijing opened this issue Jan 27, 2022 · 1 comment

Comments

@jingyuezijing
Copy link

jingyuezijing commented Jan 27, 2022

codeception.yml like this:
image

api.suit.yml like this:
image

index.php
image

when i test in command:
php vendor/codeception/codeception/codecept run --coverage --coverage-xml --coverage-html

_output/coverage:open the html ,nothing to test result all zero;how can t do to get the right coverage?
image

@jingyuezijing jingyuezijing changed the title coverage result all 0 remote coverage result all 0 Jan 27, 2022
@delboy1978uk
Copy link

delboy1978uk commented Oct 27, 2023

I'm having a similar issue, I'm running in a docker compose setup using Selenium.
codeception yaml

paths:
    tests: tests
    output: tests/_output
    data: tests/_data
    support: tests/_support
    envs: tests/_envs
actor_suffix: Tester
extensions:
    enabled:
        - Codeception\Extension\RunFailed
coverage:
    enabled: true
    remote: true
    include:
        - src/*

acceptance yaml

actor: AcceptanceTester
modules:
    enabled:
        - WebDriver:
              host: 'chrome'
              url: 'http://customs.docker'
              browser: chrome
              capabilities:
                  acceptInsecureCerts: true
                  chromeOptions:
                      args: ["--headless", "--disable-gpu"]
        - \Helper\Acceptance
step_decorators: ~

public/index.php

$_SERVER['HTTP_X_CODECEPTION_CODECOVERAGE'] = \getenv('APP_ENV') === 'test' ? true : false;
include __DIR__ . '/../c3.php';
image

Any suggestions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants