Skip to content

Contributing: Running the Test Suite #212

Answered by SilentVoid13
andrew8088 asked this question in Help
Discussion options

You must be logged in to vote

Hey @andrew8088 thanks for considering contributing to Templater!
Since we can only access the obsidian code from the obsidian app, the main.test.js is actually an obsidian plugin!
You just have to add this file to a folder inside your vault plugins folder, and then run Alt+t (default hotkey) to launch the tests.
Tests results will appear in the console (Ctrl+Shift+I to open it)
Tests are very basic for now, I need to add some more. If you feel like it, don't hesitate to add some too. I'm using the chai assertion library. Just look at the existing tests and follow the structure, it's pretty basic.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SilentVoid13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants