increpare / PuzzleScript

Open Source HTML5 Puzzle Game Engine
MIT License
903 stars 159 forks source link

loop through demo directory on tests (from clementsparrow) #748

Closed increpare closed 3 years ago

increpare commented 3 years ago

cf https://github.com/ClementSparrow/Pattern-Script/commit/5b8d35c283bfc22257bada8e8bc42cb51f75b9d7

ClementSparrow commented 3 years ago

note that I use a file that lists all the demos because it cannot be done in javascript. But since you have a server for puzzlescript.net you could have a script running there and serving the file. Also, since you have the gallery database with (I guess) the gists of the games, you could directly pull the game gists from the gallery.

increpare commented 3 years ago

OTOH I manually added all the gallery games already once. Which I had forgotten about makes this task obsolete. (i don't want to have the test suite reliant on downloading stuff from online). ^^

increpare commented 3 years ago

note that I use a file that lists all the demos because it cannot be done in javascript

@clementsparrow Suggestion: would you want to regenerate it in compile.js?

ClementSparrow commented 3 years ago

I'd like to avoid using compile.js at all :-) And if I want to regenerate the file when I add a demo, "ls demo/ > tests/demo_list.txt" seems far superior to me than anything node.js could provide :-D