Closed tandrewnichols closed 9 years ago
Huh. How big of a divergence between branches? Config changes? Just source and spec files?
On Thu, Feb 20, 2014 at 10:34 AM, Andrew Nichols notifications@github.com wrote:
I often find that when I'm working in a branch (with passing tests and a clean index) and then switch back to master, the tests start failing because it's still trying to run specs for code that's not in that branch. I have to restart lineman and rerun the specs to make them green.
Reply to this email directly or view it on GitHub: https://github.com/linemanjs/lineman/issues/213
Yeah, usually it's changes to angular controllers/services and their corresponding tests. Often (maybe always - haven't observed real closely) it's with new files that don't exist in master. It's like lineman is holding a reference to the spec and trying to test files that are no longer there.
Try hitting enter in testem to force a re-run?
On Thu, Feb 20, 2014 at 11:07 AM, Andrew Nichols notifications@github.com wrote:
Yeah, usually it's changes to angular controllers/services and their corresponding tests. Often (maybe always - haven't observed real closely) it's with new files that don't exist in master. It's like lineman is holding a reference to the spec and trying to test files that are no longer there.
Reply to this email directly or view it on GitHub: https://github.com/linemanjs/lineman/issues/213#issuecomment-35637298
Quitting testem ("q") and rerunning it doesn't usually work (again, I can't recall if this is always or just usually). I have to restart lineman too. This could be a version thing. As we observed when you were here last, our lineman version is super old now (0.16.0 I think).
Ah. Latest lineman or it didn't happen. ;-)
On Thu, Feb 20, 2014 at 11:10 AM, Andrew Nichols notifications@github.com wrote:
Quitting testem ("q") and rerunning it doesn't usually work (again, I can't recall if this is always or just usually). I have to restart lineman too. This could be a version thing. As we observed when you were here last, our lineman version is super old now (0.16.0 I think).
Reply to this email directly or view it on GitHub: https://github.com/linemanjs/lineman/issues/213#issuecomment-35637715
Good motivation to upgrade I guess :)
This works fine (with the latest lineman) unless your current branch has new node_module dependencies that old code doesn't (I think).
I often find that when I'm working in a branch (with passing tests and a clean index) and then switch back to master, the tests start failing because it's still trying to run specs for code that's not in that branch. I have to restart lineman and rerun the specs to make them green.