compiletest, a general purpose completion tester #241
Replies: 2 comments 8 replies
-
I don't mind making it into a separate project but I was planning to change some things:
How do you see the scope for |
Beta Was this translation helpful? Give feedback.
-
Hmm... Dependencies are getting crazy assert-rs/completest#3. Having a concrete shell version is nice, other shells can't be installed the same way - this means you still have to manage external non rust dependencies, but also it takes 90 seconds to compile everything. And this I think is a step in the wrong direction: assert-rs/completest#4. Instead of scrubbing existing environment from anything that can cause variations - it is better to make one that is known to be clean.
|
Beta Was this translation helpful? Give feedback.
-
I saw
compiletester
and thought that'd be handy, so I went and createdcompletest
. Its not published yet because I've not yet verified if my changes work yet.Besides sharing completion testing between parsers like clap and bpaf, this can help with
Parser::complete
)I'm also going to experiment with plugging this into trycmd so you can write completion tests in markdown file which I hope will make adding new completion tests lighter weight and make maintaining existing ones have lower overhead. For example, I can see having all tests for one shell in a single markdown file and then you can diff the different shell implementations.
Beta Was this translation helpful? Give feedback.
All reactions