Skip to content

Commit 6d8a6e6

Browse files
committed
Migrate tests to test item framework
1 parent cd96cfd commit 6d8a6e6

10 files changed

+31
-169
lines changed

.github/workflows/jlpkgbutler-butler-workflow.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/workflows/jlpkgbutler-ci-master-workflow.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.

.github/workflows/jlpkgbutler-ci-pr-workflow.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

.github/workflows/jlpkgbutler-codeformat-pr-workflow.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/jlpkgbutler-compathelper-workflow.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

.github/workflows/jlpkgbutler-tagbot-workflow.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/workflows/juliaci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Julia CI
2+
3+
on:
4+
push: {branches: [main,master]}
5+
pull_request: {types: [opened,synchronize,reopened]}
6+
issue_comment: {types: [created]}
7+
schedule: [{cron: '0 0 * * *'}]
8+
workflow_dispatch: {inputs: {feature: {type: choice, description: What to run, options: [CompatHelper,DocDeploy,LintAndTest,TagBot]}}}
9+
10+
jobs:
11+
julia-ci:
12+
uses: julia-vscode/testitem-workflow/.github/workflows/juliaci.yml@v1
13+
with:
14+
include-all-compatible-minor-versions: true
15+
include-rc-versions: true
16+
permissions: write-all
17+
secrets:
18+
codecov_token: ${{ secrets.CODECOV_TOKEN }}

.jlpkgbutler.toml

Lines changed: 0 additions & 1 deletion
This file was deleted.

Project.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ version = "1.0.1-DEV"
55

66
[extras]
77
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
8+
TestItemRunner = "f8b46487-2199-4994-9208-9a1283c18c0a"
89

910
[compat]
1011
julia = "1"
1112

1213
[targets]
13-
test = ["Test"]
14+
test = ["Test", "TestItemRunner"]

test/runtests.jl

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,35 @@
1-
using TestItems
2-
using Test
1+
using TestItemRunner
32

4-
@testset "TestItems" begin
3+
@testitem "Test @testitem" begin
54

65
x = @testitem "Name of the test item" begin
76
println("Hello world")
87
end
98
@test x === nothing
9+
end
1010

11+
@testitem "Test @testmodule and @testsnippet" begin
1112
y = @testmodule Foo begin
1213
const x = 10
1314
getfloat() = rand()
1415
end
1516
@test y === nothing
17+
end
18+
19+
@testitem "Test @testsnippet" begin
1620

1721
z = @testsnippet Bar begin
1822
println("Hello world")
1923
end
2024
@test z === nothing
25+
end
2126

27+
@testitem "Test @ccall in @testitem" begin
2228
w = @testitem begin
2329
error()
2430
@ccall splork
2531
end
2632
@test w === nothing
2733
end
34+
35+
@run_package_tests

0 commit comments

Comments
 (0)