Adding test capabilities to build tools (maven, gradle, ant, etc.)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Adding test capabilities to build tools (maven, gradle, ant, etc.)

abelsromero
I just got the idea that it could be interesting to add some basic test capabilities to the building tools.
This could allow us to validate the example projects.

I don't a clear idea of how we could achieve this without forcing the user to write tests...
Maybe, validating that the files are created? or offer an interface so that users can insert assertions on the result? Or maybe is something that should be provided by the backends?

Ideas and suggestions will be kindly accepted, also, "this makes no sense" is a valid suggestion.

Thanks,
Reply | Threaded
Open this post in threaded view
|

Re: Adding test capabilities to build tools (maven, gradle, ant, etc.)

mojavelinux
Administrator
Do you mean testing source snippets within AsciiDoc, or do you mean integrating testing the project build itself?

If the latter, I think the Maven plugin already has integration tests setup {1}, which we could start using more.

-Dan


On Tue, Jan 12, 2016 at 3:04 PM, abelsromero [via Asciidoctor :: Discussion] <[hidden email]> wrote:
I just got the idea that it could be interesting to add some basic test capabilities to the building tools.
This could allow us to validate the example projects.

I don't a clear idea of how we could achieve this without forcing the user to write tests...
Maybe, validating that the files are created? or offer an interface so that users can insert assertions on the result? Or maybe is something that should be provided by the backends?

Ideas and suggestions will be kindly accepted, also, "this makes no sense" is a valid suggestion.

Thanks,



If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Adding-test-capabilities-to-build-tools-maven-gradle-ant-etc-tp4181.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen
Reply | Threaded
Open this post in threaded view
|

Re: Adding test capabilities to build tools (maven, gradle, ant, etc.)

abelsromero
What I mean is offering options to validate the output. It does not imply validating the proper rendering hwo we do in the unit testing.
For instance, in the case of the maven plugin, we could have an additional mojo or a parameter that takes the different document files configured and validates that at least a and output file exists with size > 0 exists.