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

avoid dependencies for tests #38

Open
aewallin opened this issue Jul 25, 2018 · 1 comment
Open

avoid dependencies for tests #38

aewallin opened this issue Jul 25, 2018 · 1 comment
Labels

Comments

@aewallin
Copy link
Owner

We now depend on a random-polygon-generator and on a font-geometry-source library for a lot of tests.
This is fine for development, but maybe not ideal for deployment and automated testing.

It would be better to use the geometry-sources to generate "hardcopy" text-files with the desired test-geometry and store that in each test-directory. A good descriptive text-format is needed (YAML/INI-format or similar?)

@aewallin
Copy link
Owner Author

aewallin commented Aug 2, 2018

this example shows how to write an ini-style text file with geometry from truetypetracer
https://github.com/aewallin/truetype-tracer/blob/master/py/test_3_textwriter.py

these could be included as plain-text files in tests, as source of geometry.

a similar format can be used for random polygons also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant