Surok112 / robotframework-maven-plugin

Automatically exported from code.google.com/p/robotframework-maven-plugin
0 stars 0 forks source link

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

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 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.

Original issue reported on code.google.com by m...@orangeandbronze.com on 23 Mar 2011 at 11:19

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
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

Original comment by mrmall...@gmail.com on 23 Mar 2011 at 11:23

GoogleCodeExporter commented 8 years ago
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

Original comment by mrmall...@gmail.com on 23 Mar 2011 at 11:24

GoogleCodeExporter commented 8 years ago
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.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.4.2</version>
<configuration>
    <includes>
        <include>**/*IntegrityTest.java</include>
    </includes>
</configuration>

Original comment by dietrich...@gmail.com on 23 Mar 2011 at 12:36

GoogleCodeExporter commented 8 years ago
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. 

Original comment by dietrich...@gmail.com on 23 Mar 2011 at 2:41

GoogleCodeExporter commented 8 years ago
current snapshot now supports "includes" and "excludes." you may use "*" for 
multiple values and "?" for single character values.

  <configuration>
    <includes>
        <include>*esources.*</include>
    </includes>
       <excludes>
           <exclude>*test.*</exclude>
      </excludes>
  </configuration>

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

Original comment by mrmall...@gmail.com on 31 Mar 2011 at 12:54

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

Original comment by dietrich...@gmail.com on 9 Apr 2011 at 5:24