FAQ
How are
jlcoverage
andjlcodestyle
different than directly using theCoverage
,CoverageTools
, orJuliaFormatter
packages?TestTools
provides CLI tools that wrap functionality in the Julia packages that it depends on. Some trade-offs of using theTestTools
CLI tools rather than directly calling package functions include:Pros
- Less typing when running from the shell
- Combines useful sequences of package functions
- Easier to set commonly used options
- Shorter runtime (due to CLI-tuned compiler options)
Cons
- Inconvenient to use from the Julia REPL
- Does not cover all of the combinations of package functions
- Does not cover all options available through package functions
- Longer runtime (depends on compiler options used to start Julia REPL)
What is the difference between
jlcodestyle
andJuliaFormatter
'sformat.jl
CLI tool?Method for specifying style
jlcodestyle
: style level – Blue vs YAS vs Defaultformat.jl
: line level (e.g., number of spaces to use for indentation)
File overwriting behavior
jlcodestyle
: by default, files are not overwritten. There is a command-line option enable file overwriting.format.jl
: always overwrites files
Performance
jlcodestyle
: faster startup through the use of tuned Julia command-line optionsformat.jl
: no command-line option tuning to reduce startup time