AlexKnauth / reprovide-lang

a simple racket language for reproviding modules
MIT License
5 stars 0 forks source link

Test submod to run tests of reprovided modules? #6

Closed AlexKnauth closed 3 years ago

AlexKnauth commented 8 years ago

Would be possible for #lang reprovide modules to add a test submodule that runs the test submodules (if they exist) of the required files?

jackfirth commented 8 years ago

This can cause a cascade of test rerunning if there's reprovide modules that require reprovide modules that require reprovide modules etc., as running raco test . will run cause the leaf modules to get run several times.

AlexKnauth commented 8 years ago

Maybe a main submodule then? I was thinking of it because that's usually what I want when I run one of these reprovide files in DrRacket.

jackfirth commented 8 years ago

That makes more sense. Would it be better to require it explicitly at the repl than do it by default? Like have the main submodule define a test-all function.