@abram is there a way I can run a gist in trycf.com "headlessly"? I suspect there might be abuse concerns in doing so, so perhaps not? Basically I was wanting to make a request that does the equiv of clicking the "Run Code" button, but just get the response content from the "Results" iframe back.
a
abram
05/06/2022, 7:02 PM
currently there aren’t any restrictions. You could perform the post in something like postman or insomnia, you’d just pass the form fields
code
and
asserts
. Is that what you’re after?
a
Adam Cameron
05/06/2022, 9:15 PM
Oh OK. I'll have a gander. Cheers.
s
Scott Steinbeck
05/07/2022, 12:29 AM
@Adam Cameron please do a little blog post if you get this working. I have a similar use case 🙂
There's a primitive assertion library used for building tutorials. That section has been disabled for now, due to a change in the service I was using to house the database, and lack of time to migrate.
abram
05/09/2022, 6:47 PM
It allows you to write a test against the code and report back to the user (student) if it passed or failed.