Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tomltestgen: add toml-test unit test generation command #610

Merged
merged 4 commits into from
Oct 4, 2021

Conversation

moorereason
Copy link
Contributor

  • Ported tomltestgen to v2.
  • toml-test file layout changed recently, so updated to work with sub-folders.
  • Added go-generate support to the top of toml_testgen_support_test.go.
  • Tests hidden behind a build tag for now.

Issue: #599

Tests are hidden behind a "testsuite" build tag for now since many tests
are failing.  Use `go test -tags testsuite` to activate.

Use `go generate` to regenerate toml_testgen_test.go.
@pelletier
Copy link
Owner

Looking good! Do you have plans to import /testsuite outside of the module? Otherwise seems like it could go to /internal to avoid an accidental import.

Good idea to make it work with go generate!

@moorereason
Copy link
Contributor Author

Yes, I have a cmd package for the toml-test binary interface which will use this package.

We could move the generated test file (and support file) into the testsuite package and avoid exporting some functions, but I was trying to work with the existing files.

@pelletier
Copy link
Owner

pelletier commented Oct 4, 2021

👍🏻 Sounds good. Merging this and will create a follow up issue to fix failing tests. Edit: #613.

@pelletier pelletier merged commit 62acca2 into pelletier:v2 Oct 4, 2021
@pelletier pelletier added the build Issues regarding go-toml's CI system. label Oct 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issues regarding go-toml's CI system.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants