1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-12-01 01:04:02 +00:00
plantuml/docs/TESTING.md
2023-10-02 19:37:46 +00:00

2.8 KiB

Testing PlantUML

Prerequisites

See the Building page and especilay the paragraph Building PlantUML with Gradle.

Running Tests

Run all tests, for all licences

To run the tests included with the project, use the following command:

gradle test

Run a specific test, for only one licence

Comment those lines on settings.gradle.kts:

a327d636a7/settings.gradle.kts (L12-L16)

Then you can run a specific test (e.g. the aTestClass Class):

gradle test --tests aTestClass

Contributing

After successfully building and testing the project, you are ready to start contributing to PlantUML! If you have any changes to contribute, please submit a pull request through the PlantUML GitHub repository.

Test Directory Architecture

%%{ init : { "flowchart" : { "curve" : "stepBefore" }}}%%
graph LR
T["test/"]
T -->|"Unit Test\n(of src/com/plantuml/api/cheerpj)"| W["com/plantuml/wasm"]
T -->|"Unit Test\n(of src/net/sourceforge/plantuml)"| U["net/sourceforge/plantuml"]
T -->|"Non-regression Test"| N[nonreg]

Additional Resources

Gradle

Gradle Plugins

JUnit

JUnit extensions

AssertJ

Mockito