Testing template


#1

Reading the instructions for adding a new workspace type, and its not clear how I would test it myself before doing the PR.

Can you please make this a bit more clear?


#2

Could you tell me what documentation you are using for adding a new workspace type?


#3

I am following the readme and associated links from the GitHub repo for
templates


#4

To be clear… The github readme clearly explains how to create a new template type, but I would like to test it first before during a PR…

Its just not clear how to some how simulate loading this template…


#5

I’m going to get back to you on this, but it might take a while (week).


#6

No rush, but it seems like I must be just missing something. Surely when people create new templates they must somehow test them before doing a PR???

Of course I can in the meantime just put a new template together, and hope I did it right. Is that what other people are doing maybe?


#7

Hey, I’m terribly sorry, but we’re not currently accepting PRs for new workspace types, just for things in existing templates.

As for testing them, if you run ./templatectl ws-foo run it should start up a dev workspace inside of a container for you on port 8080: https://github.com/c9/templates/blob/master/CONTRIBUTING.md#testing-runnersother-gui-functionality