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

Can't run full suite with coverage without c3.php even if acceptance coverage disabled #1249

Closed
precariouspanther opened this issue Jul 28, 2014 · 0 comments
Labels
Milestone

Comments

@precariouspanther
Copy link

For our purposes we want to run all three suites of tests (unit, functional, acceptance) and at the same time generate coverage reports for the unit and functional tests.

However, even if we explicitly disable coverage in the acceptance suite:

class_name: AcceptanceTester
modules:
  enabled:
    - WebDriver
  config:
    WebDriver:
      url: 'http://app.dev'
      host: 'localhost'
      port: '9988'
      browser: 'phantomjs'
coverage:
    enabled: false
    remote: false

Codeception ignores this and tries to run the coverage for the acceptance tests anyway, causing a 404 exception to be thrown when Codeception cant connect to c3.php (we do not wish to include this in the application). We are running the suites with:

vendor/bin/codecept run --coverage-html -xml -d

However, if we leave off the --coverage-html flag coverage isn't generated for the Unit/Functional suites even if they explicitly enable them in their individual suite configs.

We have tried various combinations of configuration options (specifying remote:false in the global codeception.yml, etc) but can't get this to work without modifying codeception to completely remove the LocalServer coverage functionality.

Is there some configuration we're missing or using incorrectly, or can you add the ability to specifically disable coverage for acceptance test whilst still preserving the feature for Unit and Functional tests? Older versions of Codeception allowed us to do this before the new C3 feature was added.

Thanks.

@samdark samdark modified the milestones: 2.0.5, 2.0.6 Aug 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants