Updated doc for deprecated namespace

11 views
Skip to first unread message

Dave Burns

unread,
Dec 9, 2011, 4:05:25 PM12/9/11
to mxu...@googlegroups.com
Hi, guys. Not urgent but:

I'm using mxunit:dataprovider which I see in the main doc page (http://wiki.mxunit.org/display/default/Data+driven+testing+with+MXUnit+dataproviders). At the bottom there's a note about how to use those in cfscript-based tests using annotations in comments (yuk). I Googled and found this: http://code.google.com/p/mxunit/issues/detail?id=170. I saw Bob's comment at the bottom so I tried taking out the 'mxunit:' and all worked fine.

Probably makes sense to update the wiki - maybe even the CFML examples if the namespace is truly deprecated?

db

Marc Esher

unread,
Dec 9, 2011, 4:21:37 PM12/9/11
to mxu...@googlegroups.com
I do not believe it's been officially deprecated. In fact, I've come
to prefer it.

> --
> You received this message because you are subscribed to the Google Groups
> "mxunit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/mxunit/-/aCfs6riFjYEJ.
> To post to this group, send email to mxu...@googlegroups.com.
> To unsubscribe from this group, send email to
> mxunit+un...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/mxunit?hl=en.

Dave Burns

unread,
Dec 9, 2011, 7:04:50 PM12/9/11
to mxu...@googlegroups.com
Ah, I guess the thread in that link was unclear to me. Still, the colon interferes with script-based tests. Is support official for both forms then (with and without the namespace prefix)?

Marc Esher

unread,
Dec 9, 2011, 8:13:20 PM12/9/11
to mxu...@googlegroups.com

Sorry, but I think I'm missing something. How does the colon interfere
with script based tests?

>
> --
> You received this message because you are subscribed to the Google Groups
> "mxunit" group.
> To view this discussion on the web visit

> https://groups.google.com/d/msg/mxunit/-/-og1173glHQJ.

Dave Burns

unread,
Dec 10, 2011, 10:10:37 AM12/10/11
to mxu...@googlegroups.com
Marc - See the link in my original post above for a complete description with examples. In short, if you write your test CFCs in cfscript then "mxunit:" annotations make ColdFusion's syntax checker throw an error. It doesn't like colons. Since this is legit in CFML syntax, it's probably a bug in Adobe's cfscript parser.

Marc Esher

unread,
Dec 10, 2011, 10:20:16 AM12/10/11
to mxu...@googlegroups.com

Are you using an old version of CF? Because as of 9.0.1 (released
quite some time ago), that was fixed. I assure you, all of my cfscript
tests which use mxunit:dataprovider work as expected.

To answer your question, yes, both mxunit:dataprovider and
dataprovider will work. And I doubt at this point we'll deprecate the
namespace.

>
>
> --
> You received this message because you are subscribed to the Google Groups
> "mxunit" group.
> To view this discussion on the web visit

> https://groups.google.com/d/msg/mxunit/-/G3aUN8Q9x8AJ.

Dave Burns

unread,
Dec 10, 2011, 10:36:43 AM12/10/11
to mxu...@googlegroups.com
Aha. I'm on 9.0.0 for compatibility with a customer that can't upgrade. Good to know.

Marc Esher

unread,
Dec 10, 2011, 10:47:06 AM12/10/11
to mxu...@googlegroups.com
On Sat, Dec 10, 2011 at 10:36 AM, Dave Burns <goo...@burnsorama.com> wrote:
> Aha. I'm on 9.0.0 for compatibility with a customer that can't upgrade. Good
> to know.

Sorry to hear that Dave. I'll update the docs to indicate required
version and try to clear up the confusion.

Thanks.

>
> --
> You received this message because you are subscribed to the Google Groups
> "mxunit" group.
> To view this discussion on the web visit

> https://groups.google.com/d/msg/mxunit/-/dgBD1bCs-kYJ.

Reply all
Reply to author
Forward
0 new messages