c3
c3 copied to clipboard
remote coverage result all 0
codeception.yml like this:
api.suit.yml like this:
index.php
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?
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';
Any suggestions?