# Engine tests don't seem to run at all from trunk

**URL:** <https://www.ruby-forum.com/t/engine-tests-dont-seem-to-run-at-all-from-trunk/89829>\
**Category:** Engines Development\
**Created:** [March 29, 2006, 10:23am UTC](https://www.ruby-forum.com/t/engine-tests-dont-seem-to-run-at-all-from-trunk/89829 "2006-03-29T10:23:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![wolfmanjm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/3da27b/32.png) [@wolfmanjm](https://www.ruby-forum.com/u/wolfmanjm)\
**Post date:** [March 29, 2006, 10:23am UTC](https://www.ruby-forum.com/t/engine-tests-dont-seem-to-run-at-all-from-trunk/89829/1 "2006-03-29T10:23:58Z")

</div>

I have checked out from trunk, am on rails 1.1 and ruby 1.8.4

The first problem I ran into was not finding the testing\_extensions.

I fixed it by changing this line, and adding the “engines” after “lib”

require File.join(Engines.config(:root), “engines”, “lib”, “engines”,  
“testing\_extensions”)

Then I get pretty much all errors, as it does not seem to find the  
fixtures for the user\_engine in the login\_engine (that figures but why  
is it looking there?)

Are these known issues or am I just doing stuff wrong?

I am running the tests as rake test:plugins.

thanks

---

<div class="post-metadata">

**Author:** ![wolfmanjm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/3da27b/32.png) [@wolfmanjm](https://www.ruby-forum.com/u/wolfmanjm)\
**Post date:** [March 29, 2006, 3:15pm UTC](https://www.ruby-forum.com/t/engine-tests-dont-seem-to-run-at-all-from-trunk/89829/2 "2006-03-29T15:15:48Z")

</div>

I have the same problem, you have to change the test\_helper.rb file  
from  
require File.join(Engines.config(:root), “engines”, “lib”, “engines”)  
to  
require File.join(Engines.config(:root), “engines”, “lib”, “engines”,  
“testing\_extensions”)

---

<div class="post-metadata">

**Author:** ![wolfmanjm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/3da27b/32.png) [@wolfmanjm](https://www.ruby-forum.com/u/wolfmanjm)\
**Post date:** [March 29, 2006, 11:59pm UTC](https://www.ruby-forum.com/t/engine-tests-dont-seem-to-run-at-all-from-trunk/89829/3 "2006-03-29T23:59:06Z")

</div>

Jim M. wrote:

> Christophe G. wrote:
> 
> > I have the same problem, you have to change the test\_helper.rb file  
> > from  
> > require File.join(Engines.config(:root), “engines”, “lib”, “engines”)  
> > to  
> > require File.join(Engines.config(:root), “engines”, “lib”, “engines”,  
> > “testing\_extensions”)
> 
> Even with that fix (which I already did) virtually every test fails with  
> this…
> 
> Fixture::FixtureError: Couldn’t find a yaml, csv or standard file to  
> load at ./vendor/plugins/login\_engine/test/functional/…/fixtures/  
> (roles\_users).

Not for me, all went fine - You must have something wrong elsewhere

---

<div class="post-metadata">

**Author:** ![wolfmanjm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/3da27b/32.png) [@wolfmanjm](https://www.ruby-forum.com/u/wolfmanjm)\
**Post date:** [March 29, 2006, 11:17pm UTC](https://www.ruby-forum.com/t/engine-tests-dont-seem-to-run-at-all-from-trunk/89829/4 "2006-03-29T23:17:30Z")

</div>

Christophe G. wrote:

> I have the same problem, you have to change the test\_helper.rb file  
> from  
> require File.join(Engines.config(:root), “engines”, “lib”, “engines”)  
> to  
> require File.join(Engines.config(:root), “engines”, “lib”, “engines”,  
> “testing\_extensions”)

Even with that fix (which I already did) virtually every test fails with  
this…

Fixture::FixtureError: Couldn’t find a yaml, csv or standard file to  
load at ./vendor/plugins/login\_engine/test/functional/…/fixtures/  
(roles\_users).

---

<div class="post-metadata">

**Author:** ![wolfmanjm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/3da27b/32.png) [@wolfmanjm](https://www.ruby-forum.com/u/wolfmanjm)\
**Post date:** [March 30, 2006, 9:57am UTC](https://www.ruby-forum.com/t/engine-tests-dont-seem-to-run-at-all-from-trunk/89829/5 "2006-03-30T09:57:18Z")

</div>

No, I don’t use the login engine - For the moment I’m just using few  
classes and files created by the login generator (I don’t like  
plenty-of-features plugins and plan to write my own login system later),  
and they works fine.

---

<div class="post-metadata">

**Author:** ![wolfmanjm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/3da27b/32.png) [@wolfmanjm](https://www.ruby-forum.com/u/wolfmanjm)\
**Post date:** [March 30, 2006, 8:37am UTC](https://www.ruby-forum.com/t/engine-tests-dont-seem-to-run-at-all-from-trunk/89829/6 "2006-03-30T08:37:32Z")

</div>

Christophe G. wrote:

> Jim M. wrote:
> 
> > Christophe G. wrote:
> > 
> > > I have the same problem, you have to change the test\_helper.rb file  
> > > from  
> > > require File.join(Engines.config(:root), “engines”, “lib”, “engines”)  
> > > to  
> > > require File.join(Engines.config(:root), “engines”, “lib”, “engines”,  
> > > “testing\_extensions”)
> > 
> > Even with that fix (which I already did) virtually every test fails with  
> > this…
> > 
> > Fixture::FixtureError: Couldn’t find a yaml, csv or standard file to  
> > load at ./vendor/plugins/login\_engine/test/functional/…/fixtures/  
> > (roles\_users).
> 
> Not for me, all went fine - You must have something wrong elsewhere

Do you have user engine installed as well? it seems the login engine  
tests don;t run when the userengine is installed.
