Skip to content

carpentries-incubator/fortran-unit-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

120 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fortran unit testing lesson

A lesson for teaching how to unit test Fortran code.

Building the website locally

From within RStudio run the following commands. First, install the needed dependencies.

install.packages(c("sandpaper", "varnish", "pegboard")) # This may not need to be called as frequently as the following commands

Then can build the site

setwd('/path/to/fortran-unit-testing-lesson')
sandpaper::build_lesson()

This will create a local build of the site at site/docs/index.html.

Dependencies

This repo utilises fortitude (and other linters) alongside prek for linting. To install these tools we use pip therefore contributors will require python version 3.9 or above.

To setup prek

  1. Create a python virtual environment and activate it

    python3 -m venv .venv
    source .venv/bin/activate # or `source .venv/scripts/activate` on windows
  2. Install the dev dependencies

    python -m pip install -r requirements.txt
  3. Turn on pre-commit

    prek install

About

A Carpentries style lesson for teaching unit testing in Fortran

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors