Closed jferard closed 7 years ago
There is an issue when copying all files in src/bench
(the name of the dir doesn't matter), because Benchmark.java
won't compile without external jars and there is no reason for other files to depend on thoses jars.
Here is a possible structure:
src/misc/bench/com/github/jferard/fastods/Benchmark.java
src/misc/other/com/github/jferard/fastods/...
With the following POM entries:
<profile>
<id>bench</id>
<properties>
<fastods.testSourceDirectory>src/misc/bench</fastods.testSourceDirectory>
</properties>
</profile>
<profile>
<id>other</id>
<properties>
<fastods.testSourceDirectory>src/misc/other</fastods.testSourceDirectory>
</properties>
</profile>
The README and the wiki contains some examples that have to be fixed.
There are four fake tests:
src/test/.../OdsFileWithHeaderAndFooterCreation.java
(kind of example)src/test/.../OdsFileCreation.java
(kind of example)src/test/.../ProfileFastODS.java
(for profiling)src/bench/.../Benchmark.java
(for benchmarks) All those files could be in a newsrc/misc/java
folder (amisc
would replace thebench
one). The first two could have a...Test.java
ending to help running it from maven.