Skip to content

Commit

Permalink
Merge pull request #8 from JuliaImGui/v1.91.5
Browse files Browse the repository at this point in the history
Prepare for v0.1.4
  • Loading branch information
JamesWrigley authored Nov 19, 2024
2 parents a2dd6ea + ece4f05 commit ee4b718
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 21 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ImGuiTestEngine"
uuid = "464e2eba-0a11-4ed3-b274-413caa1a1cca"
authors = ["JamesWrigley <[email protected]>"]
version = "0.1.3"
version = "0.1.4"

[deps]
CImGui = "5d785b6c-b76f-510e-a07c-3070796c7e87"
Expand All @@ -14,7 +14,7 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[compat]
CImGui = "2,3"
CImGuiPack_jll = "0.3,0.4,0.5,0.6"
CImGuiPack_jll = "0.3,0.4,0.5,0.6,0.7"
Compat = "4.15.0"
CxxWrap = "0.16.0"
DocStringExtensions = "0.9.3"
Expand Down
4 changes: 4 additions & 0 deletions docs/src/_changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ CurrentModule = ImGuiTestEngine
This documents notable changes in ImGuiTestEngine.jl. The format is based on
[Keep a Changelog](https://keepachangelog.com).

## [v0.1.4] - 2024-11-19

Patch release to fix compat for CImGui v4/Dear ImGui 1.91.5 ([#8]).

## [v0.1.3] - 2024-10-08

Patch release to add compat for CImGui v3.1/Dear ImGui 1.91.2 ([#7]).
Expand Down
2 changes: 1 addition & 1 deletion src/engine.jl
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ macro register_test(f, engine::Symbol, category::AbstractString, name::AbstractS
end


ig._test_engine_is_running(engine::Engine) = GetIO(engine).IsRunningTests
ig._test_engine_is_running(engine::Engine) = !lib.ImGuiTestEngine_IsTestQueueEmpty(engine.ptr)

function ig._start_test_engine(engine::Engine, ctx::Ptr{libig.ImGuiContext})
Start(engine, ctx)
Expand Down
20 changes: 2 additions & 18 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -149,16 +149,7 @@ end
ran_test_func = true
end

te.QueueTests(engine)
te.Start(engine, ctx)

ig.render(ctx) do
# te.ShowTestEngineWindows(engine)

if !engine_io.IsRunningTests
return :imgui_exit_loop
end
end
ig.render(ctx; engine) do ; end

@test ran_gui_func
@test ran_test_func
Expand Down Expand Up @@ -196,14 +187,7 @@ end
noret_exited_at_end = true
end

te.Start(engine, ctx)
te.QueueTests(engine)

ig.render(ctx) do
if !te.GetIO(engine).IsRunningTests
return :imgui_exit_loop
end
end
ig.render(ctx; engine) do ; end

@test imcheck_entered_test
@test !imcheck_exited_at_end
Expand Down

2 comments on commit ee4b718

@JamesWrigley
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/119723

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.4 -m "<description of version>" ee4b7184daa98d1712a16162577392b6c7bc47ef
git push origin v0.1.4

Please sign in to comment.