Skip to content

Commit b789f01

Browse files
authored
Add Aqua to tests (#326)
1 parent 7d37634 commit b789f01

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

Project.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ JSON = "0.18, 0.19, 0.20, 0.21"
1515
julia = "1"
1616

1717
[extras]
18+
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
1819
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
1920
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
2021

2122
[targets]
22-
test = ["Statistics", "Test"]
23+
test = ["Aqua", "Statistics", "Test"]

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
# BenchmarkTools.jl
22

33
<picture>
4-
<source media="(prefers-color-scheme: dark)" srcset="docs/src/assets/logo-dark.svg" width="100" height="100">
5-
<img alt="BenchmarkTools logo" src="docs/src/assets/logo.svg" width="100" height="100">
4+
<source media="(prefers-color-scheme: dark)" srcset="docs/src/assets/logo-dark.svg" width="100" height="100" align="right">
5+
<img alt="BenchmarkTools logo" src="docs/src/assets/logo.svg" width="100" height="100" align="right">
66
</picture>
77

88
[![][docs-stable-img]][docs-stable-url]
99
[![][docs-dev-img]][docs-dev-url]
1010
[![Build Status](https://github.com/JuliaCI/BenchmarkTools.jl/workflows/CI/badge.svg)](https://github.com/JuliaCI/BenchmarkTools.jl/actions/workflows/CI.yml?query=branch%3Amaster)
1111
[![Code Coverage](https://codecov.io/gh/JuliaCI/BenchmarkTools.jl/branch/master/graph/badge.svg?label=codecov&token=ccN7NZpkBx)](https://codecov.io/gh/JuliaCI/BenchmarkTools.jl)
12+
[![Aqua QA](https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg)](https://github.com/JuliaTesting/Aqua.jl)
1213

1314
BenchmarkTools makes **performance tracking of Julia code easy** by supplying a framework for **writing and running groups of benchmarks** as well as **comparing benchmark results**.
1415

test/runtests.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
using Aqua
2+
using BenchmarkTools
3+
using Test
4+
5+
print("Testing code quality...")
6+
took_seconds = @elapsed Aqua.test_all(BenchmarkTools)
7+
println("done (took ", took_seconds, " seconds)")
8+
19
print("Testing Parameters...")
210
took_seconds = @elapsed include("ParametersTests.jl")
311
println("done (took ", took_seconds, " seconds)")

0 commit comments

Comments
 (0)