Skip to content

Commit 6f6da04

Browse files
authored
Add Aqua.jl tests (#12)
1 parent 1462b1f commit 6f6da04

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
# ColorQuantization
1+
# ColorQuantization.jl
22

33
[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://juliaimages.github.io/ColorQuantization.jl/stable/)
44
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://juliaimages.github.io/ColorQuantization.jl/dev/)
55
[![Build Status](https://github.com/JuliaImages/ColorQuantization.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/JuliaImages/ColorQuantization.jl/actions/workflows/CI.yml?query=branch%3Amain)
6+
[![Aqua QA](https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg)](https://github.com/JuliaTesting/Aqua.jl)
67
[![Coverage](https://codecov.io/gh/JuliaImages/ColorQuantization.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/JuliaImages/ColorQuantization.jl)
78

89
A Julia package to generate color palettes from images.

test/Project.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[deps]
2+
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
23
Colors = "5ae59095-9a9b-59fe-a467-6f913c188581"
34
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
45
ReferenceTests = "324d217c-45ce-50fc-942e-d289b448e8cf"
@@ -10,4 +11,4 @@ TestImages = "5e47fb64-e119-507b-a336-dd2b206d9990"
1011
Colors = "0.12"
1112
ReferenceTests = "0.10"
1213
StableRNGs = "1"
13-
TestImages = "1"
14+
TestImages = "1"

test/runtests.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
using ColorQuantization
22
using Test
3+
using Aqua
34
using TestImages, ReferenceTests
45
using Colors
56
using Random, StableRNGs
67

8+
# Run Aqua.jl quality assurance tests
9+
Aqua.test_all(ColorQuantization; ambiguities=false)
10+
Aqua.test_ambiguities([ColorQuantization, Core])
11+
12+
# Run package tests
713
rng = StableRNG(123)
814
Random.seed!(rng, 34568)
915

0 commit comments

Comments
 (0)