yanne / api-testing

I am using this to test GitHub API
1 stars 0 forks source link

have an option to run libdoc against multiple selected files #302

Open yanne opened 10 years ago

yanne commented 10 years ago

it is a bit difficult to use if you keep resources and tests in the same folder, which seems to be a common practice. Libdoc cannot handle test cases, only resources. A future improvement might be to have a fileset with includes and excludes which runs against the default tests folder. I'll write an issue for that and see if I can come up with something.

This issue was originally opened at Google Code on Mar 23, 2011.

yanne commented 10 years ago

Original comment by mrmall...@gmail.com on Mar 23, 2011.

perhaps add an includes and excludes argument in conjunction with libraryOrResourceDirectory parameters:

mvn robotframework:libdoc -DlibraryOrResourceDirectory=src/main/java/com/example/keywords -Dinclude=resource1.txt|resource2.txt -Dexclude=testCase1.txt|testCase2.txt

yanne commented 10 years ago

Original comment by mrmall...@gmail.com on Mar 23, 2011.

example above doesn't mean you have to use them both at the same time i guess. should be use either, but not necessarily both

yanne commented 10 years ago

Original comment by dietrich...@googlemail.com on Mar 23, 2011.

The surefire plugin and many others support includes and excludes with patterns. Maybe one can use their implementation, maybe there is even something in the maven framework for that.

org.apache.maven.plugins maven-surefire-plugin 2.4.2 *_/_IntegrityTest.java
yanne commented 10 years ago

Original comment by dietrich...@googlemail.com on Mar 23, 2011.

However, at the moment it would be more important for me to have 1.1 out, but having the libdoc goal with includes and excludes.

yanne commented 10 years ago

Original comment by mrmall...@gmail.com on Mar 31, 2011.

current snapshot now supports "includes" and "excludes." you may use "*" for multiple values and "?" for single character values.

_esources._ _test._

this works in conjuction with the libraryOrResourceDirectory parameter. this is being searched recursively.

yanne commented 10 years ago

Original comment by dietrich...@googlemail.com on Apr 8, 2011.

has support for Ant-style wildcards now, too, which allows to control folder hierarchies using */.txt.