diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 20aeae5..206cb20 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -83,8 +83,8 @@ jobs: - run: | julia --project=docs -e ' using Documenter: doctest - using ModelTesting - doctest(ModelTesting)' + using DynamicModelTestUtils + doctest(DynamicModelTestUtils)' - run: julia --project=docs docs/make.jl env: JULIA_PKG_SERVER: "" diff --git a/Project.toml b/Project.toml index 20b153c..845885a 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ -name = "ModelTesting" +name = "DynamicModelTestUtils" uuid = "726cd793-0c59-4a7a-97d2-1baad301d093" authors = ["Ben Chung and contributors"] -version = "0.1.0" +version = "0.1.1" [deps] CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b" diff --git a/README.md b/README.md index b9f4cb5..4a682bd 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# ModelTesting -ModelTesting is a simple package that wraps SymbolicIndexingInterface to provide straightforward model regression analysis & comparision functionality. +# DynamicModelTestUtils +DynamicModelTestUtils is a simple package that wraps SymbolicIndexingInterface to provide straightforward model regression analysis & comparision functionality. It can export model result data using `discretize_solution` into a DataFrame and can compare against those DataFrames using `compare`. It's intended for use in CI pipelines. diff --git a/docs/make.jl b/docs/make.jl index 12f5d62..71dffc3 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -1,13 +1,13 @@ -using ModelTesting +using DynamicModelTestUtils using Documenter -DocMeta.setdocmeta!(ModelTesting, :DocTestSetup, :(using ModelTesting); recursive=true) +DocMeta.setdocmeta!(DynamicModelTestUtils, :DocTestSetup, :(using DynamicModelTestUtils); recursive=true) makedocs(; - modules=[ModelTesting], + modules=[DynamicModelTestUtils], authors="Ben Chung and contributors", - repo="https://github.com/BenChung/ModelTesting.jl/blob/{commit}{path}#{line}", - sitename="ModelTesting.jl", + repo="https://github.com/BenChung/DynamicModelTestUtils.jl/blob/{commit}{path}#{line}", + sitename="DynamicModelTestUtils.jl", format=Documenter.HTML(; prettyurls=get(ENV, "CI", "false") == "true", edit_link="master", @@ -18,5 +18,5 @@ makedocs(; ], ) deploydocs( - repo = "github.com/JuliaComputing/ModelTesting.jl.git", + repo = "github.com/JuliaComputing/DynamicModelTestUtils.jl.git", ) \ No newline at end of file diff --git a/docs/src/index.md b/docs/src/index.md index 439c35f..17098cd 100644 --- a/docs/src/index.md +++ b/docs/src/index.md @@ -1,12 +1,12 @@ ```@meta -CurrentModule = ModelTesting +CurrentModule = DynamicModelTestUtils ``` -# ModelTesting +# DynamicModelTestUtils -Documentation for [ModelTesting](https://github.com/BenChung/ModelTesting.jl). +Documentation for [DynamicModelTestUtils](https://github.com/BenChung/DynamicModelTestUtils.jl). -ModelTesting is intended to facilitate the easy testing and post-facto analysis of ModelingToolkit models. It currently provides two key bits of functionality: +DynamicModelTestUtils is intended to facilitate the easy testing and post-facto analysis of ModelingToolkit models. It currently provides two key bits of functionality: * Serialization of MTK solutions into a common format through `discretize_solution`. * Comparison of solutions to each other and to previously-saved data through `compare`. @@ -16,5 +16,5 @@ ModelTesting is intended to facilitate the easy testing and post-facto analysis ``` ```@autodocs -Modules = [ModelTesting] +Modules = [DynamicModelTestUtils] ``` diff --git a/src/ModelTesting.jl b/src/DynamicModelTestUtils.jl similarity index 84% rename from src/ModelTesting.jl rename to src/DynamicModelTestUtils.jl index 5becd7c..0e421a4 100644 --- a/src/ModelTesting.jl +++ b/src/DynamicModelTestUtils.jl @@ -1,4 +1,4 @@ -module ModelTesting +module DynamicModelTestUtils using DataFrames, StatsBase, LinearAlgebra using ModelingToolkit, SciMLBase, SymbolicIndexingInterface abstract type DiscreteEvaluation end @@ -8,4 +8,5 @@ include("test/discretize.jl") include("test/instant.jl") include("test/compare.jl") include("problem_config/problem.jl") +include("deploy/deploy.jl") end diff --git a/test/runtests.jl b/test/runtests.jl index fb977b2..fac3b27 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,11 +1,12 @@ #using JuliaSimModelOptimizer -using ModelTesting +using DynamicModelTestUtils using DifferentialEquations, DataFrames, ModelingToolkit import SymbolicIndexingInterface using Test -@testset "ModelTesting.jl" begin +@testset "DynamicModelTestUtils.jl" begin #include("timeseries.jl") include("block_modeling.jl") include("instantaneous.jl") + include("deployment.jl") end