diff --git a/docs/src/tutorial.md b/docs/src/tutorial.md index d7565c3..0a8753f 100644 --- a/docs/src/tutorial.md +++ b/docs/src/tutorial.md @@ -48,7 +48,7 @@ Now, suppose that you are interested in turning this into an experiment which st Running this example assumes you have an active MLFlow running on your computer. -```julia +```jldoctest; output=false using Plots using MLFlowClient using Random @@ -110,6 +110,11 @@ rm(plotfilename) # complete the experiment updaterun(mlf, exprun, "FINISHED") +nothing + +# output + +nothing ``` This will result in the folowing experiment created in your `MLFlow` which is running on `http://localhost/`: diff --git a/test/Project.toml b/test/Project.toml new file mode 100644 index 0000000..a6760fd --- /dev/null +++ b/test/Project.toml @@ -0,0 +1,13 @@ +[deps] +Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f" +Dates = "ade2ca70-3891-5945-98fb-dc099432e06a" +Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" +MLFlowClient = "64a0f543-368b-4a9a-827a-e71edb2a0b83" +Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" +UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4" + +[sources] +MLFlowClient = {path = ".."} + +[compat] +julia = "1.10" diff --git a/test/runtests.jl b/test/runtests.jl index 1a0d314..09c20a2 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -14,3 +14,4 @@ include("services/experiment.jl") include("services/registered_model.jl") include("services/model_version.jl") include("services/user.jl") +include("doctests.jl")