ocaml-sf / learn-ocaml

A Web Application for Learning OCaml
https://ocaml-sf.org/learn-ocaml/
MIT License
303 stars 66 forks source link

Partial building of exercises session. #61

Open lyrm opened 6 years ago

lyrm commented 6 years ago

In the context of a large corpus of exercises, it will be useful to be able to build either one single exercise or every exercises except one. Will it be possible to add such an option ?

picdc commented 6 years ago

I'll look into it, I'm currently working on refactoring the repository processing.

yurug commented 6 years ago

Actually being able to pass a list of exercises to build would be nice.

picdc commented 6 years ago

PR #74 adresses this issue. It was already possible to grade a set of exercises learn-ocaml grade -e <ex1,ex2...>, but they could not be tested in the web application.

One possible improvement after #74 would be to filter out some exercises, like we do for compilers warnings: -a, +a, +ex1-ex2, for example. But I think it might be a bit overkill since index.json describes the set of exercises to build.