Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

Dependency Test Coverage Differences on Windows #413

Open
glasschef opened this issue Jun 8, 2015 · 3 comments
Open

Dependency Test Coverage Differences on Windows #413

glasschef opened this issue Jun 8, 2015 · 3 comments
Labels

Comments

@glasschef
Copy link

Chefspec 4.2.0 in Windows seems to treat coverage of dependencies differently than it does on other platforms. For the same cookbook on Windows and OS X and Linux:

Windows: https://gist.github.com/glasschef/dd0b7c2293a2bf413568

ChefSpec Coverage report generated...

  Total Resources:   19
  Touched Resources: 3
  Touch Coverage:    15.79%

Untouched Resources:

  chef_gem[di-ruby-lvm]              C:0
  yum_package[lvm2]                  C:0
  yum_package[s3cmd]                 C:0
  template[s3cfg]                    C:0
  yum_package[logrotate]             C:0
  directory[/etc/logrotate.d]        C:0
  template[/etc/logrotate.d/mongodb]   C:0
  yum_package[iptables]              C:0
  execute[rebuild-iptables]          C:0
  directory[/etc/iptables.d]         C:0
  template[/usr/sbin/rebuild-iptables]   C:0
  template[/etc/iptables.d/all_established]   C:0
  template[/etc/iptables.d/all_icmp]   C:0
  template[/etc/iptables.d/prefix]   C:0
  template[/etc/iptables.d/postfix]   C:0
  template[/etc/iptables.d/mongodb]   C:0

OS X: https://gist.github.com/glasschef/5e7e6c7ed464b98ee481

ChefSpec Coverage report generated...

  Total Resources:   3
  Touched Resources: 3
  Touch Coverage:    100.0%

You are awesome and so is your test coverage! Have a fantastic day

Existing issue in ChefSpec: chefspec/chefspec#594

@danielsdeleo
Copy link
Contributor

Appears to be an upstream issue, will keep this ticket here to track getting the fix in once it becomes available.

@joelhandwell
Copy link

chefspec 4.3.0 was released on July 16th 2015 and I'm getting same result like Mac 100% and Windows 32%. Is there anyone getting same result?

ksubrama pushed a commit that referenced this issue Jan 11, 2016
Updating chef-provisioning-aws to latest version 1.2.1
@thommay
Copy link
Contributor

thommay commented Feb 1, 2017

Hey @joelhandwell @glasschef does this bug still occur (sorry it's 18 months later). If it does, can you provide a replication case in the form of the actual cookbook that shows the problem?
Thanks!

@thommay thommay added the Type: Bug Doesn't work as expected. label Feb 1, 2017
@thommay thommay added this to the Accepted Minor milestone Feb 1, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

4 participants