Doclet to save a Fixture's javadoc as json

Save all json to a directory to be included in META-INF

License

License

GroupId

GroupId

nl.praegus
ArtifactId

ArtifactId

fixture-doc-generator
Last Version

Last Version

1.1
Release Date

Release Date

Type

Type

jar
Description

Description

Doclet to save a Fixture's javadoc as json
Save all json to a directory to be included in META-INF
Project URL

Project URL

https://github.com/praegus/fixture-doc-generator
Source Code Management

Source Code Management

https://github.com/praegus/fixture-doc-generator.git

Download fixture-doc-generator

How to add to project

<!-- https://jarcasting.com/artifacts/nl.praegus/fixture-doc-generator/ -->
<dependency>
    <groupId>nl.praegus</groupId>
    <artifactId>fixture-doc-generator</artifactId>
    <version>1.1</version>
</dependency>
// https://jarcasting.com/artifacts/nl.praegus/fixture-doc-generator/
implementation 'nl.praegus:fixture-doc-generator:1.1'
// https://jarcasting.com/artifacts/nl.praegus/fixture-doc-generator/
implementation ("nl.praegus:fixture-doc-generator:1.1")
'nl.praegus:fixture-doc-generator:jar:1.1'
<dependency org="nl.praegus" name="fixture-doc-generator" rev="1.1">
  <artifact name="fixture-doc-generator" type="jar" />
</dependency>
@Grapes(
@Grab(group='nl.praegus', module='fixture-doc-generator', version='1.1')
)
libraryDependencies += "nl.praegus" % "fixture-doc-generator" % "1.1"
[nl.praegus/fixture-doc-generator "1.1"]

Dependencies

compile (1)

Group / Artifact Type Version
com.google.code.gson : gson jar 2.8.5

system (1)

Group / Artifact Type Version
sun.jdk » tools jar 1.5.0

Project Modules

There are no modules declared in this project.

JSON JavaDoc Doclet

For FitNesse Fixture Docs

A doclet class to collect Javadoc info from fixture classes to be distributed in the META-INF folder of the fixture jar.

Use Praegus toolchain-fitnesse-plugin (https://repo.maven.apache.org/maven2/nl/praegus/toolchain-fitnesse-plugin/) to see the documentation in your test's context pane when editing.

If you define a line in your javadoc comment that starts with 'Usage: ' the wiki usage is expected. So say we have a method:

public String getSomeDataFromButIgnore(String location, String somethingElse) {}

One could write:

/**
 * A method that gets data
 * Usage: | get some data from | [location] | but ignore | [somethingElse] |
 * @Param location ..
 * @Param somethingElse ..
 * @Return the requested data
 */

To be sure that the context helper and autocomplete will use that string instead of:

| get some data from but | [location] | ignore | [somethingElse] |

Which the default wikitext generator in autocomplete responder would produce.

Usage: Add the doclet to your build using the maven-javadoc-plugin. Note that in order to document any methods that come from superclasses that are not in your package, you should set includeDependencySources to true and exclude any packages (you can use wildcards) that you don't need json files for.

<plugin>
    <artifactId>maven-javadoc-plugin</artifactId>
    <extensions>true</extensions>
    <executions>
        <execution>
            <phase>generate-resources</phase>
            <goals>
                <goal>javadoc</goal>
            </goals>
        </execution>
    </executions>

    <configuration>
        <doclet>nl.praegus.doclets.FixtureDocGenerator</doclet>
        <docletArtifact>
            <groupId>nl.praegus</groupId>
            <artifactId>fixture-doc-generator</artifactId>
            <version>1.0</version>
        </docletArtifact>

        <excludePackageNames>list:of:packages:to:exclude</excludePackageNames>

        <includeDependencySources>true</includeDependencySources>
        <dependencySourceIncludes>
            <dependencySourceInclude>group:artifactToInclude</dependencySourceInclude>
        </dependencySourceIncludes>

        <reportOutputDirectory>${project.basedir}/src/main/resources/META-INF/</reportOutputDirectory>
        <useStandardDocletOptions>false</useStandardDocletOptions>
    </configuration>
</plugin>
nl.praegus

Praegus B.V.

Intelligent Compassionate Testing

Versions

Version
1.1
1.0