Andrew Chen
2008-Mar-28 14:17 UTC
[rspec-users] How to loadby by alphabetical order, not mtime
Hi, I''m writing my requirements in rspec, however, I can not figure out a way to execute all specs according to alphabetical order, not by last modified time. According to the documentation, it seems like the default is by alphabetical order, I just can not get that to work. In the unit tests with the rspec package, seems like only mtime was tested. Can anyone tell me how to run specs by name order ? spec spec/* This will printout -L, --loadby STRATEGY Specify the strategy by which spec files should be loaded. STRATEGY can currently only be ''mtime'' (File modification time) By default, spec files are loaded in alphabetical order if --loadby is not specified. Thanks ~Andrew Chen
Andrew Chen
2008-Mar-31 02:53 UTC
[rspec-users] How to loadby by alphabetical order, not mtime
Hi, I''m writing my requirements in rspec, however, I can not figure out a way to execute all specs according to alphabetical order, not by last modified time. According to the documentation, it seems like the default is by alphabetical order, I just can not get that to work. In the unit tests with the rspec package, seems like only mtime was tested. Can anyone tell me how to run specs by name order ? spec spec/* This will printout -L, --loadby STRATEGY Specify the strategy by which spec files should be loaded. STRATEGY can currently only be ''mtime'' (File modification time) By default, spec files are loaded in alphabetical order if --loadby is not specified. Thanks ~Andrew Chen
Maybe Matching Threads
- Is loadby file name order not implemented or not working? - want to run tests in file name order, not mtime order
- RSpec: "--color" not working in spec.opts when combined with "--drb"
- rspec and autotest (was: questions rspec on rails)
- a question of alphabetical order
- Months in alphabetical order rather than chronological order in graph