Re: Literate programming/TDD with Leiningen + midje + marginalia

2011-12-22 Thread Linus Ericsson
Yes, it does. I had problems with some midje-facts crashing the rendering
in marginalia, but was able to just give the files as consecutive arguments
as a work around.

lein marg src/app/core.clj src/app/another/file.clj

wildcards works fine as well.

This problem with midje-facts being incompatible with marginalia needs
further investigation from my side though.

btw - is there a possibility to hide comments in emacs/slime? Midje-mode
have this great feature of collapsing fact-clausules for reducing clutter.
Would love to have the same thing when I have pages and pages of comments.

/Linus

2011/12/23 Alex Baranosky 

> Hi Adam,
>
> It seems like making it so that Marginalia allows you to specify which
> directories to use would be the ideal case, instead of feeling a need to
> lump all your tests in the src directory.
>
> I wonder if Marginalia already supports this?
>
> Alex
>
>
> On Wed, Dec 21, 2011 at 11:25 PM, Adam Getchell 
> wrote:
>
>> Thanks for all the replies!
>>
>> I'm trying midje first (keeping expectations in mind for later) as it
>> seems to support writing tests and then code (i.e. top down testing).
>>
>> (This video  was
>> useful, thanks for making it!)
>>
>> In generating documentation with marginalia (particularly useful for when
>> I figure out how to get LaTeX formulae in there), I note that marginalia
>> doesn't pickup files in /test but only /src. So it seems that I need to
>> embed tests directly in my code in order to self-document.
>>
>> Is this a huge no-no, better ways to accomplish this?
>>
>> P.S. (Newbie) what's the difference between (:use [clojure.test])
>> and (:use midje.sweet)? Both seem to work.
>>
>> --
>> "Invincibility is in oneself, vulnerability in the opponent." -- Sun Tzu
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clojure@googlegroups.com
>> Note that posts from new members are moderated - please be patient with
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Literate programming/TDD with Leiningen + midje + marginalia

2011-12-22 Thread Alex Baranosky
Hi Adam,

It seems like making it so that Marginalia allows you to specify which
directories to use would be the ideal case, instead of feeling a need to
lump all your tests in the src directory.

I wonder if Marginalia already supports this?

Alex

On Wed, Dec 21, 2011 at 11:25 PM, Adam Getchell wrote:

> Thanks for all the replies!
>
> I'm trying midje first (keeping expectations in mind for later) as it
> seems to support writing tests and then code (i.e. top down testing).
>
> (This video  was
> useful, thanks for making it!)
>
> In generating documentation with marginalia (particularly useful for when
> I figure out how to get LaTeX formulae in there), I note that marginalia
> doesn't pickup files in /test but only /src. So it seems that I need to
> embed tests directly in my code in order to self-document.
>
> Is this a huge no-no, better ways to accomplish this?
>
> P.S. (Newbie) what's the difference between (:use [clojure.test])
> and (:use midje.sweet)? Both seem to work.
>
> --
> "Invincibility is in oneself, vulnerability in the opponent." -- Sun Tzu
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Literate programming/TDD with Leiningen + midje + marginalia

2011-12-22 Thread Adam Getchell
Thanks for all the replies!

I'm trying midje first (keeping expectations in mind for later) as it seems
to support writing tests and then code (i.e. top down testing).

(This video  was
useful, thanks for making it!)

In generating documentation with marginalia (particularly useful for when I
figure out how to get LaTeX formulae in there), I note that marginalia
doesn't pickup files in /test but only /src. So it seems that I need to
embed tests directly in my code in order to self-document.

Is this a huge no-no, better ways to accomplish this?

P.S. (Newbie) what's the difference between (:use [clojure.test]) and (:use
midje.sweet)? Both seem to work.

-- 
"Invincibility is in oneself, vulnerability in the opponent." -- Sun Tzu

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en