<@U01UMF483V4> how did you setup this testbox test...
# cfml-general
s
It isn't testbox -- it's Adam's micro-test framework that has some similar features to testbox. trycf let's you initialize a gist with setup code (hence the URL).
Here's the test framework (adjusting the URL to show the setupCode gist): https://trycf.com/gist/816ce84fd991c2682df612dbaf1cad11?theme=monokai
d
Very nice trick. Thank you Sean
s
He blogged about it: https://blog.adamcameron.me/2022/05/why-im-doing-this-tinytestframework.html (that links to several earlier articles showing how he developed it)
d
That article is hilarious
s
I really like his writing 🙂
d
I love how he called out the testing nae sayers
🤣
a
The whole thing was a built-up to call ppl "fuckwits" I work in mysterious ways.
😀 1
d
and why not.
a
\me thinks No. No reason I can think of.
g
That testing framework looks awesome! Who runs tryCF? maybe it could be incorporated into the site, properly, and do away with the setup GIST? WOW!
s
The nice aspect of that feature is that any code can be your setup code -- and this makes it easy for Adam to keep updating it and for anyone else to use any version of it, rather than baking it into trycf.
👍🏾 1
d
I don't know how many good setup codes there are out there or which ones are popular but atleast this one should be featured on the app somehow, and with a click of a button added to one's current gist.
g
I agree - and of course now that I am thinking about it - it doesn;t seem like such a big deal - to build it in. But my thinking at the time was that tryCF could handle the "Do I have the latest version of the TinyTestFramework - get it from Adam's gitHub and load "that". Saving me from : Do I need to change the setup gist to ensure I have the latest version available to me? And sure I could do it myself by using a gist that http GETS the latest from Adam's github... But that just serves me. Until this thread I didn't even know it existed... Baking it into tryCF would advertise it / make it available to everyone.
and it's a really super idea... oftentimes you just want to try some random "crap" without having to pollute your current workspace / spin up a "scribble" server - just for "effing" around on.
d
I still think that the site sucks because I can't save my favorite gists to my account.
s
Note that it is not, technically, on "Adam's gitHub" -- it's just a "gist".
@Daniel Mejia You know you can fork any gists you like so they end up in your account (on GH)?
d
Sean, when people share gists I see them in fullscreen mode - I have never expected a github link to be available until now.
s
(I've always found GH's approach to gists a bit weird -- they aren't repositories, they're all kind of off on one side)
The ability to have multi-file gists means that some tooling in some languages can use a gist as a library directly...
g
@seancorfield Every gist is a Git repository, which means that it can be forked and cloned.
d
The site has a tutorials section where one can save pages of info - I wish it just had a favorites or starred list.
s
For example https://gist.github.com/seancorfield/6e8dd10799e9cc7527da5510c739e52f is a full library that can be used from Clojure directly.
@gavinbaumanis I mean the difference between https://github.com/seancorfield?tab=repositories and https://gist.github.com/seancorfield -- gists are just harder to find. https://github.com/seancorfield doesn't link to gists 😞
d
oh yeah very true. github gists sucks too.
hey I still trycf and github though because the most important feature of each app is priceless.
g
@seancorfield Agreed - but my point is that tryCF could have some code that ensures that the latest version of the setup gist is always the latest To my mind - you could have a separate "run Tests" button - so it didn't load the framework for "normal" use.
r

https://youtu.be/a-BOSpxYJ9M?t=1081

😂 1
☝🏻on testing bigotry. Calling people 'fuckwits' not helps to gain new friends usually, or make them try your ideas. Testing frameworks are crutches to help developer walk, some may not like walking this way 😉 Maybe in 5 years industry make another swing, and another cool method of working with no test frameworks be in favor.
👏🏾 1
d
By the way, I like living on both sides 🤟🏾

https://youtu.be/pvBHyip4peo?t=26

👍🏼 1
g
Oh that reminds he has some really great videos for learning VIM, too!

https://www.youtube.com/watch?v=H3o4l4GVLW0

☝🏾 1
d
Absolutely