xuri / xgen

XSD (XML Schema Definition) parser and Go/C/Java/Rust/TypeScript code generator
BSD 3-Clause "New" or "Revised" License
339 stars 80 forks source link

Testing instructions #11

Closed BatmanAoD closed 4 years ago

BatmanAoD commented 4 years ago

Testing instructions, etc

Description

I took the paragraph on testing in the existing CONTRIBUTING.md and separated it into its own section, then added some details.

I also checked in the go.mod changes created by running go test, as well as the generated go.sum file, since xgen is an executable rather than a module.

Finally, I added data/ to .gitignore to facilitate changing the "active" test set without accidentally duplicating it under version control.

Related Issue

Resolves #9.

Motivation and Context

Specific instructions for running tests help potential new contributors.

How Has This Been Tested

I was able to run the parser tests on the base64.xsd input using the instructions I added.

Types of changes

Checklist

BatmanAoD commented 4 years ago

Because the GH Action uses a timeout of 60 minutes for the full test suite, I did not attempt to run it on my personal machine. I did try running just TestParseGo with -v but canceled it after a minute or so.

xuri commented 4 years ago

LGTM, thanks for your contribution.