Atlas native test runner#157
Conversation
Co-authored-by: Andreas Rumpf <araq4k@proton.me>
|
Why do we need this? It's beyond Atlas's scope and doesn't fit in IMO. |
It’s not beyond the original scope of Atlas. Narrowing down atlas’s scope has made sense IMO but not in this case. This is needed so Atlas can function as a Nimble replacement since many repos rely on |
|
Hmmm though I just remembered there is testament. I just recall testament kinda “being meh” for some reason. As in confusing to use. Maybe that was the koch thing. Honestly that opinion is vague and could be because I don’t favor having to remember too many of randomly named tools. Pretty sure I’m not unique in that. I like namespacing like Perhaps having Atlas just call Testament instead? |
|
On the note of a nimble replacement, IMO Atlas should also support |
|
See, I might be too dumb to use Testament: https://gist.github.com/elcritch/2cae045ce132dfd34c703b6653560d71 Ugh I'll have to read the docs instead of running my tests. :P |
|
Testament is not good indeed, Nimony uses a new tool named "hastur" instead. So if Atlas provides a test command, it indeed makes sense to copy Nimble here. The problem here is that Atlas's design says "it won't call Nim for you", it merely sets up a nim.cfg. If we treat Atlas as a Nimble replacement all these things make perfect sense, of course. |
True, and I do like that. I also want a simple way to run tests. Perhaps adding a |
|
What if Then technically it's not Atlas invoking Nim, but another tool/plugin. |
|
Maybe a separate |
Having something that deals with all the devops is quite valuable, similar to |
|
Atlas is a package manager, not a build tool. If it becomes a build tool it needs to support every option that Nim supports, this can be done in some half-assed broken manner as Nimble does it or via a new |
A separate tool like Though @mratsim it's surprisingly effective to add tasks like
A standard way in many programs is with a |
|
|
|
Seconding an |
Adds support for
atlas test,atlas test --parallel, andatlas test tests/mytest.nim. Runstests/t*.nimwhen no args are provided.Note: no care is taken to separate test output in parallel mode. Use serial mode if you want serial output.