Closed leeola closed 13 years ago
Hmm, that should work. Could you please post the log output? To obtain it, you can use
nosetests --with-freshen -v -l nose
Another thing to try is to explicitly include the path to the directory with the feature files. Like so:
nosetests --with-freshen -v features
Log:
(env)me@mine:~/projects/freshen_tests/basic_001$ ls -l
total 9
-rwxrwxrwx 1 me me 283 2010-08-15 16:55 calculator.py
-rwxrwxrwx 1 me me 1161 2010-08-15 16:55 calculator.pyc
drwx------ 1 me me 4096 2010-08-15 16:54 features
-rwxrwxrwx 1 me me 0 2010-08-15 16:14 init.py
-rwxrwxrwx 1 me me 147 2010-08-15 16:15 init.pyc
(env)me@mine:~/projects/freshen_tests/basic_001$ nosetests --with-freshen -v -l nose
nose.plugins.manager: DEBUG: Configuring plugins
nose.plugins.manager: DEBUG: Plugins enabled: [<nose.plugins.capture.Capture object at 0x1ee0750>, <nose.plugins.logcapture.LogCapture object at 0x1ee0790>, <nose.plugins.deprecated.Deprecated object at 0x1ee0910>, <nose.plugins.skip.Skip object at 0x20c9dd0>, <freshen.noseplugin.FreshenNosePlugin object at 0x237ed10>, <freshen.noseplugin.FreshenErrorPlugin object at 0x23b7610>]
nose.core: DEBUG: configured Config(addPaths=True, args=(), configSection='nosetests', debug='nose', debugLog=None, env={}, exclude=None, files=[], firstPackageWins=False, getTestCaseNamesCompat=False, ignoreFiles=(<_sre.SRE_Pattern object at 0x1ea23b0>, <_sre.SRE_Pattern object at 0x1ea2420>, <_sre.SRE_Pattern object at 0x1eb1c90>), include=None, includeExe=False, logStream=<open file '
----------------------------------------------------------------------
Ran 0 tests in 0.002s
OK
(env)me@mine:~/projects/freshen_tests/basic_001$
and here is calling the directory, then a file.
(env)me@mine:~/projects/freshen_tests/basic_001$ nosetests --with-freshen -v features
----------------------------------------------------------------------
Ran 0 tests in 0.000s
OK
(env)me@mine:~/projects/freshen_tests/basic_001$ nosetests --with-freshen -v features/division.feature
Division: Regular numbers ... ok
----------------------------------------------------------------------
Ran 1 test in 0.001s
OK
(env)me@mine:~/projects/freshen_tests/basic_001$
Ok, I see the problem now. Nose doesn't like loading tests from files which are marked as executable unless you specify them by name. If you remove the execute permission from the .feature files, this problem should go away.
Please let me know if you continue seeing this.
Crap.. any idea how it can be fixed without changing the chmod?
It is an NTFS external drive i work off of, so it won't support proper permissions to my knowledge..
Yes, you should be able to pass --exe to nosetests to make it look in executable modules.
Ok, sorry for the delay.
I ended up getting sick of my NTFS drive situation and ended up formatting and junk. Due to the the complexity of my setup, ext3 is not the best option, so it was a whole ordeal heh.
Anyway, i managed to get the permission changed to -x and it worked great! Thanks :) I very much look forward to the next releases!
On a side note, are there any mailing lists/irc channels to go to for a community, or at least to communicate to the developer(s)?
You can go to the ruby cucumber/rspec community for most questions.
I'm working on setting up a mailing list. Once it is setup, I will post it at the front of the docs.
I haven't seen a mailing list or any contact information, so i apologize if this is not where discussion is intended. Hopefully this is a bug of some sort :P
Anyway, i seem unable to run freshen with the simple calculator example. Any idea why? Here is my terminal screen after attempting to run freshen. Note that i put the init's in there just to try and figure out what is going on. Oddly enough, they are being compiled, and neither calulator.py nor steps.py are, as seen by the pyc..
So yea.. if it was at least an error i could work with it... but i have no idea what is actually wrong, aside from nothingness.
So yea, any help would be much appreciated.
Update: Alright, i seem to be doing something wrong? I found it works great if i define every single feature file.. manually