Giter VIP home page Giter VIP logo

Comments (4)

hexaeder avatar hexaeder commented on July 18, 2024 1

yeah both the nested envionment and the extras section in project have their pros and cons... currently i was using the latter with TestEnv.jl to activate the test environment

from graphmakie.jl.

hexaeder avatar hexaeder commented on July 18, 2024

My current idea for this would be to transform the literate scripts in docs/examples to jl scripts during runtests. For that one could add save commands to the examples which are hidden away in the md export for the documentation. Running the scripts would produce some pngs which could be compared against assets using ReferenceTests.jl or similar.

Additionally, there could be a new literate notebook referencetests.jl where we could put random code snippets to create test files. Even if those examples are not curated nor explained, i think there is value in displaying and testing different features of the package for interested users to scroll through. Stuff like #65 (comment)

from graphmakie.jl.

filchristou avatar filchristou commented on July 18, 2024

Currently the test environment is the same as the project environment. I think a first step would be to separate that.
The way I normally do this is with:

cd  test
julia
julia> ]
(@v1.7) pkg> activate .
(test) pkg> dev ..
(test) pkg> add CairoMakie, GLMakie, ...

This way the tester will not need to manually construct the needed environment every time.

Attention
Doing dev .. in the test folder breaks the possibility of calling (GraphMakie) pkg> test from inside the packet. And one need to manually run julia --project test test/runtests.jl. The relevant issue is JuliaLang/Pkg.jl#1585.

from graphmakie.jl.

filchristou avatar filchristou commented on July 18, 2024

or is there maybe a reason to go against that ?

from graphmakie.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.