# Chefignore doesn't seem to want to ignore a file

**URL:** <https://discourse.chef.io/t/chefignore-doesnt-seem-to-want-to-ignore-a-file/3170>\
**Category:** Chef Infra (archive)\
**Created:** [September 7, 2012, 10:32pm UTC](https://discourse.chef.io/t/chefignore-doesnt-seem-to-want-to-ignore-a-file/3170 "2012-09-07T22:32:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gregory\_Symons](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/gregory_symons/32/189_2.png) [@Gregory\_Symons](https://discourse.chef.io/u/Gregory_Symons)\
**Post date:** [September 7, 2012, 10:32pm UTC](https://discourse.chef.io/t/chefignore-doesnt-seem-to-want-to-ignore-a-file/3170/1 "2012-09-07T22:32:27Z")

</div>

Hi, all

I’m trying out test-kitchen, and having a small problem. I’d prefer to  
not include the minitests on production machines, but I can’t quite get  
my chefignore right to keep them from being uploaded to the server.  
Here’s what I have in chefignore:

#Ignore tests  
_/tests/_

And after uploading my cookbook, here’s what I get from `knife cookbook show <cookbook> <version> files`:

checksum: def9b47dd5753bcfd53fc92b7f000b1f  
name: tests/minitest/default\_test.rb  
path: files/default/tests/minitest/default\_test.rb  
specificity: default

As you can see, the tests are still getting uploaded to the server. Does  
anybody see some boneheaded mistake here?

–  
Greg Symons  
Developer  
DrillingInfo
