angoca / db2unit

db2unit is a testing framework for IBM DB2 SQL PL
https://angoca.github.io/db2unit/
GNU General Public License v3.0
11 stars 3 forks source link

Generate report for Maven #2

Closed angoca closed 9 years ago

angoca commented 10 years ago

After executing the suite, it should generate a standard report in order to integrate with other frameworks like Maven.

angoca commented 10 years ago

In order to develop this, a new project should be created. The project will be a Surefire provider, that will call db2unit. https://maven.apache.org/surefire/maven-surefire-plugin/api.html https://maven.apache.org/surefire/maven-surefire-plugin/examples/providers.html

https://github.com/apache/maven-surefire/tree/master/surefire-providers/surefire-junit47

This is an example: https://github.com/TheLadders/scalatest-surefire-provider

angoca commented 9 years ago

In the same way, a Jenkins plugin should be created, and it could be based on this: https://github.com/jenkinsci/utplsql-plugin

angoca commented 9 years ago

These are Maven plugins for ulplsql https://code.google.com/p/maven-utplsql-plugin/ https://code.google.com/p/utplsql-maven-plugin/

They are quite simple, they just parse the output.

angoca commented 9 years ago

It seems it could be included just by executing the tests from a script with EXEC plugin in maven.

angoca commented 9 years ago

DONE. It was included with Maven (Only in Linux/Mac OS/Unix)