Shell commands test suite #66
Replies: 2 comments 1 reply
-
Hello @Taitava ! This is absolutely fantastic. As far as I understood, this a "framework" that could be applied to any plugin developer before a public release. You are always bring things to a whole new level!
You are using Shell Commands to test new features to Shell Commands I know that I don't have the background, but I think this is amazing and the right way to test plug-ins. Thanks for everything @Taitava ! |
Beta Was this translation helpful? Give feedback.
-
I'll just comment here that the test suite is now public: https://github.com/Taitava/obsidian-shellcommands-test-suite I'm still improving it, mainly concerning installation instructions and Mac support. |
Beta Was this translation helpful? Give feedback.
-
I have been building an Obsidian vault that contains instructions and a template file for performing tests to see if all the features of this plugin work as intended. The tests are performed manually, so there is no automation at this point, and no unit tests at least yet. I have been using this test suite before releasing new versions since version
0.4.0
, and partly in version0.3.0
. The test suite has been working great and provides a solid workflow for testing the plugin.This post is not so useful for normal users who are not so interested in the development of this plugin. I'm targeting this post more towards:
A test suite cannot cover all possible problems, but at least it helps to reveal previously known issues. It includes tests for the following kind of things:
{{variable}}
has at least one shell command, that is used to check that the particular variable works ok both when previewed in command palette, and when executed.echo
and redirecting output to a file using>>
operator. So commands tend to be really simple.Other features of the test vault:
The test suite is not yet public. Shell commands still needs a bit of development until I'm ready to publish the test suite. Mainly it's about #38: I want to be able to make Mac specific versions of certain commands, so that it's easy to distinguish between what commands are meant to be executed on Mac, and what not. Currently I have some commands that are only for Windows and some only for Linux. I can handle them myself, but it's a mess, because there are currently almost 30 commands in total. Luckily, most of them are not OS specific.
I just wanted to post this to let you know that something like this is coming, and also to make it easier for me to discuss about certain features that are needed to be developed mainly for this test suite (#29 and possibly more in the future).
A general preview of the vault. Left: general instructions. Middle: the actual test report file that a test author will use/fill. Right: will contain test commands' output, which is combined to the report file at the end of the test round.
Beta Was this translation helpful? Give feedback.
All reactions