5e-database icon indicating copy to clipboard operation
5e-database copied to clipboard

Setup test to verify non-SRD information is not included.

Open benjaminapetersen opened this issue 5 years ago • 11 comments

I believe Travis-CI will run for free against a github repo. As long as PRs are used rather than direct merge to master, a simple test script could be written to read the JSON files, and validate the items.
For example, load the monsters-SRD.json, loop all the names and verify a hard-coded list of names. If anyone adds additional, tests fail.

benjaminapetersen avatar Nov 12 '19 19:11 benjaminapetersen

That sounds like a pretty good idea.

bagelbits avatar Dec 02 '19 19:12 bagelbits

@benjaminapetersen Let me know if I can help with this as at all.

bagelbits avatar Dec 13 '19 21:12 bagelbits

The main issue here is the need to run some code. Does anyone have strong feelings on language, etc?

benjaminapetersen avatar Dec 17 '19 14:12 benjaminapetersen

Not really though I think the scripts that currently exist in this repo are all JS. Though I think they need to be organized and maybe documented.

On Tue, Dec 17, 2019 at 6:36 AM Ben Petersen [email protected] wrote:

The main issue here is the need to run some code. Does anyone have strong feelings on language, etc?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/adrpadua/5e-database/issues/114?email_source=notifications&email_token=AACWKWS7M2WTJV5MUUSL2PDQZDPV3A5CNFSM4JMIJEGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHCSGCQ#issuecomment-566567690, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACWKWQLZMTZM3ZFPRXUIM3QZDPV3ANCNFSM4JMIJEGA .

bagelbits avatar Dec 17 '19 15:12 bagelbits

@ogregoire or @Alex-frazer Strong feelings on language? I mostly work in Ruby and Node. But for consistency between the languages currently in the DB and API, Node might make the most sense for now?

bagelbits avatar Dec 17 '19 17:12 bagelbits

Node is probably the most approachable to the most people.

benjaminapetersen avatar Dec 17 '19 21:12 benjaminapetersen

I'm more of a C/C++/Java/Python guy, but any language is good for me as it will be quite easy to implement.

ogregoire avatar Dec 17 '19 23:12 ogregoire

I just cut #132 which should lay some of the ground work for some of this. At least the bare minimum of a linter. I can also handle setting up the plumbing for Buildkite so that we can run that. Thought that'll have to wait until ownership gets transferred.

bagelbits avatar Dec 30 '19 23:12 bagelbits

Yup. #132 is ready to go and it will also add in Travis CI. I'm also happy to split up the PR, as it's doing quite a bit of stuff.

bagelbits avatar Jan 02 '20 06:01 bagelbits

+1

benjaminapetersen avatar Jan 02 '20 17:01 benjaminapetersen

@benjaminapetersen Travis CI is now setup.

bagelbits avatar Jan 02 '20 17:01 bagelbits