# Testing extensions from a git-clone

**URL:** <https://www.ruby-forum.com/t/testing-extensions-from-a-git-clone/136886>\
**Category:** Radiant CMS\
**Created:** [May 7, 2008, 4:18am UTC](https://www.ruby-forum.com/t/testing-extensions-from-a-git-clone/136886 "2008-05-07T04:18:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dcarneiro](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e36b37/32.png) [@dcarneiro](https://www.ruby-forum.com/u/dcarneiro)\
**Post date:** [May 7, 2008, 4:18am UTC](https://www.ruby-forum.com/t/testing-extensions-from-a-git-clone/136886/1 "2008-05-07T04:18:46Z")

</div>

I’m interested in contributing more to Radiant, but I’m a bit confused  
about how to get my test environment fully functional.

On:  
[http://dev.radiantcms.org/](http://dev.radiantcms.org/)

under:  
2. Get Radiant ready for patching:

it says “Setup your environment in a way to be able to run the unit  
tests”. . .

Can any of you give an overview of how to set up a git-cloned Radiant to  
be able to run tests fully?

Thanks!

–DJCP

---

<div class="post-metadata">

**Author:** ![dcarneiro](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e36b37/32.png) [@dcarneiro](https://www.ruby-forum.com/u/dcarneiro)\
**Post date:** [May 7, 2008, 5:02am UTC](https://www.ruby-forum.com/t/testing-extensions-from-a-git-clone/136886/2 "2008-05-07T05:02:27Z")

</div>

On May 6, 2008, at 9:18 PM, Daniel Collis-puro wrote:

> tests". . .
> 
> Can any of you give an overview of how to set up a git-cloned  
> Radiant to  
> be able to run tests fully?

It’s pretty simple. You just have to get radiant to a point where it  
will run. (e.g. configure the database and run the migrations) Then,  
the specs should run with `rake spec`

* * *

Matt Freels  
removed\_email\_address@domain.invalid

> **[Matt Freels](https://matt.freels.name/)**
>
> Follow @mf on Micro.blog.

---

<div class="post-metadata">

**Author:** ![dcarneiro](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e36b37/32.png) [@dcarneiro](https://www.ruby-forum.com/u/dcarneiro)\
**Post date:** [May 7, 2008, 5:05am UTC](https://www.ruby-forum.com/t/testing-extensions-from-a-git-clone/136886/3 "2008-05-07T05:05:57Z")

</div>

Daniel,

You’ll need to setup config/database.yml, then bootstrap your  
development database and prepare the test database. I like to symlink  
the sqlite3 example config like so:

$ cd config; ln -s database.sqlite.yml database.yml  
$ rake db:bootstrap  
$ rake db:test:prepare

Then run ‘rake spec’ or ‘autotest’ to run the behavior examples.

Sean

---

<div class="post-metadata">

**Author:** ![dcarneiro](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e36b37/32.png) [@dcarneiro](https://www.ruby-forum.com/u/dcarneiro)\
**Post date:** [May 7, 2008, 3:46pm UTC](https://www.ruby-forum.com/t/testing-extensions-from-a-git-clone/136886/4 "2008-05-07T15:46:25Z")

</div>

This is very helpful - thanks, both of you. I knew it would be simple, I  
just didn’t know the magical incantations.

–DJCP
