You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An approach to testing, even just a few basic utilities to spin up a repl of some kind and run some functions, testing that they don't explode would be great. Right now I have a bash script that generates a few variants of the project and then I manually check that they do sensible things (like that (dev) works, or that a server starts)
The text was updated successfully, but these errors were encountered:
I can appreciate that some of these might be out of scope for clj-new, but I expect they're also the most useful thing to test alongside a template. There're properties you want to have hold across a matrix of possible combinations of options.
Just so I understand, this is about some additional support for testing a new template as you are developing it specifically, rather than general project testing?
Yeah, I'd be interested in testing the template in some way. I suppose the tools I might need are:
A tool to generate a full matrix of all possible options
A way to run in the context of the generated projects, and run some kind of test suite in that context. Perhaps forking out a new JVM for each project and running a script that I provide that could do the testing itself.
seancorfield
changed the title
Offer more approaches to basic project testing?
Offer more (some!) approaches for template testing?
Aug 6, 2021
Run a few commands in that pREPL & check they do what I expect
Test the system actually came up (in this case by using etaoin to load a browser and take a picture)
Shut it all down cleanly
It would be nice to encourage template developers to do 1/2/4 by having something for this in the default template template. I rolled my own tools for that, I'm not sure if there's a programmatic client around for pREPL though.
Dominic Monroe on Slack:
The text was updated successfully, but these errors were encountered: