c3 icon indicating copy to clipboard operation
c3 copied to clipboard

remote coverage result all 0

Open jingyuezijing opened this issue 3 years ago • 1 comments

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 avatar Jan 27 '22 08:01 jingyuezijing

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?

delboy1978uk avatar Oct 27 '23 11:10 delboy1978uk