How to get the nice HTML output with the latest version of concordion

84 views
Skip to first unread message

Patrick van der Velde

unread,
Oct 4, 2010, 4:59:08 AM10/4/10
to concordio...@googlegroups.com
Hi All

I've just managed to get the latest version of Concordion to run my
tests. Now I'm wondering how I can get the actual html pages to show
up in the output directory. The tests all run (and fail) fine but
somehow there's no html output from Concordion.

I've embedded the HTML and CSS file in my assembly (which seems to
work) but I'm not copying them to the output directory. The blog post
here: http://living-in-concordion.blogspot.com/2009/05/your-first-concordionnet-project-part-3.html
seems to indicate that this should work.

My commandline is:
Gallio.Echo.exe /hd:"tools\MbUnit" /sc /pd:"tools\Concordion" /r:Local
/rd:"bin\reports" /v:Verbose /rt:XHtml-Condensed /rt:Xml-inline
"bin\build\Apollo.UI.Common.Test.Spec.dll"

Is there anything I'm missing?

Thanks

Patrick

Jeffrey Cameron

unread,
Oct 4, 2010, 6:19:38 AM10/4/10
to concordio...@googlegroups.com
Hi Patrick, the default location for output of concordion-net is to c:\windows\temp (I think! or some other temp directory. Not looking at the code right now, can answer better after I get home tonight).  Your output files are likely there.  You need to use a config file and specify the output location in there.


--
You received this message because you are subscribed to the Google Groups "Concordion For .Net" group.
To post to this group, send email to concordio...@googlegroups.com.
To unsubscribe from this group, send email to concordion-for-...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/concordion-for-net?hl=en.


Patrick van der Velde

unread,
Oct 4, 2010, 4:29:20 PM10/4/10
to concordio...@googlegroups.com
Hi Jeffrey

Thanks for that. I'll setup the config file and see what I get.

Patrick

Patrick van der Velde

unread,
Oct 6, 2010, 6:51:13 AM10/6/10
to concordio...@googlegroups.com
Hi Jeffrey

I've created a config file (concordion.config) which looks like this:

<?xml version="1.0" encoding="utf-8" ?>
<Concordion>
<BaseOutputDirectory>PATH_GOES_HERE"</BaseOutputDirectory>
<Runners>
<Runner alias="runtestrunner"
type="Concordion.Spec.Concordion.Command.Run.RunTestRunner,
Concordion.Spec, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=null" />
</Runners>
</Concordion>

And I've copied that into my bin directory (where all my assemblies
live). However for some reason there are no files in the output
directory. So I was wondering:
- Does the file need to be named concordion.config or does it need to
be named after my specification assembly?
- Do I have the correct config syntax. Some use of reflector suggests
that the BaseOutputDirectory node needs to have a path attribute?
- Anything else I've missed?

Thanks

Patrick


On Mon, Oct 4, 2010 at 23:19, Jeffrey Cameron <jeffrey...@gmail.com> wrote:

Patrick van der Velde

unread,
Oct 11, 2010, 2:24:13 AM10/11/10
to concordio...@googlegroups.com
Hi People

Does anybody have any suggestions for solving my configuration problem?

Thanks

Patrick

On Wed, Oct 6, 2010 at 23:51, Patrick van der Velde

John West

unread,
Oct 11, 2010, 2:45:07 PM10/11/10
to Concordion For .Net
Hi,

I believe concordion-net looks for a file named ASSEMBLYNAME.config.
E.g if your assembly name is "Apollo.UI.Common.Test.Spec.dll" you
should provide a config file named "Apollo.UI.Common.Test.Spec.config"
in the same directory as your spec DLL. If no config if file, the
output of the specs will default to the %TEMP% directory.


Your config file Apollo.UI.Common.Test.Spec.config should look like

<?xml version="1.0" encoding="utf-8" ?>
<Specification>
<BaseOutputDirectory path="Output" />
</Specification>


John West

On Oct 11, 7:24 am, Patrick van der Velde
> > On Mon, Oct 4, 2010 at 23:19, Jeffrey Cameron <jeffreycame...@gmail.com> wrote:
> >> Hi Patrick, the default location for output of concordion-net is to
> >> c:\windows\temp (I think! or some other temp directory. Not looking at the
> >> code right now, can answer better after I get home tonight).  Your output
> >> files are likely there.  You need to use a config file and specify the
> >> output location in there.
>
> >> On Mon, Oct 4, 2010 at 4:59 AM, Patrick van der Velde
> >> <petrikvanderve...@gmail.com> wrote:
>
> >>> Hi All
>
> >>> I've just managed to get the latest version of Concordion to run my
> >>> tests. Now I'm wondering how I can get the actual html pages to show
> >>> up in the output directory. The tests all run (and fail) fine but
> >>> somehow there's no html output from Concordion.
>
> >>> I've embedded the HTML and CSS file in my assembly (which seems to
> >>> work) but I'm not copying them to the output directory. The blog post
> >>> here:
> >>>http://living-in-concordion.blogspot.com/2009/05/your-first-concordio...

John West

unread,
Oct 6, 2010, 7:41:01 PM10/6/10
to Concordion For .Net
From my use of concordion-net so far, there are 2 config files that
it uses..

Concordion.config (for specifying your runner aliases)
ASSEMBLYNAME.config (for specifying your specification config)

so in your case, as your assembly name is "Apollo.UI.Common.Test.Spec"
you need to have a config file named
"Apollo.UI.Common.Test.Spec.config"
which should look like below if you want your output to go to folder
named "Spec-Output".

<?xml version="1.0" encoding="utf-8" ?>
<Specification>
<BaseOutputDirectory path="Spec-Output" />
</Specification>

Oh yeah, unlike the html spec files, for the config files, you need to
make sure the "Build Action" property is set to "None" and the "Copy
to Output Directory" is set to "Copy if newer". If I remember
correctly, the code works out where the ASSEMBLYNAME.dll is located,
and then tries to find the ASSEMBLYNAME.config file in the same
directory. If this config file can't be found, the default value for
the output directory is to your %TEMP% directory.

John



On Oct 6, 11:51 am, Patrick van der Velde
<petrikvanderve...@gmail.com> wrote:
> Hi Jeffrey
>
> I've created a config file (concordion.config) which looks like this:
>
> <?xml version="1.0" encoding="utf-8" ?>
> <Concordion>
>   <BaseOutputDirectory>PATH_GOES_HERE"</BaseOutputDirectory>
>   <Runners>
>     <Runner alias="runtestrunner"
> type="Concordion.Spec.Concordion.Command.Run.RunTestRunner,
> Concordion.Spec, Version=1.0.0.0, Culture=neutral,
> PublicKeyToken=null" />
>   </Runners>
> </Concordion>
>
> And I've copied that into my bin directory (where all my assemblies
> live). However for some reason there are no files in the output
> directory. So I was wondering:
> - Does the file need to be named concordion.config or does it need to
> be named after my specification assembly?
> - Do I have the correct config syntax. Some use of reflector suggests
> that the BaseOutputDirectory node needs to have a path attribute?
> - Anything else I've missed?
>
> Thanks
>
> Patrick
>
> On Mon, Oct 4, 2010 at 23:19, Jeffrey Cameron <jeffreycame...@gmail.com> wrote:
> > Hi Patrick, the default location for output of concordion-net is to
> > c:\windows\temp (I think! or some other temp directory. Not looking at the
> > code right now, can answer better after I get home tonight).  Your output
> > files are likely there.  You need to use a config file and specify the
> > output location in there.
>
> > On Mon, Oct 4, 2010 at 4:59 AM, Patrick van der Velde
> > <petrikvanderve...@gmail.com> wrote:
>
> >> Hi All
>
> >> I've just managed to get the latest version of Concordion to run my
> >> tests. Now I'm wondering how I can get the actual html pages to show
> >> up in the output directory. The tests all run (and fail) fine but
> >> somehow there's no html output from Concordion.
>
> >> I've embedded the HTML and CSS file in my assembly (which seems to
> >> work) but I'm not copying them to the output directory. The blog post
> >> here:
> >>http://living-in-concordion.blogspot.com/2009/05/your-first-concordio...
Reply all
Reply to author
Forward
0 new messages