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

Establish best practices for an arduino library's repository using arduino_ci #164

Open
ianfixes opened this issue Sep 28, 2020 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested

Comments

@ianfixes
Copy link
Collaborator

Summary

continuing #150

When writing a library that might be consumed by other libraries, how can we best provide mocks for those downstream project? In other words, given a library called font which depends on one called pixel, what should pixel look like? Initial considerations are the following:

  • Some ability for pixel to provide a mock class (or other testing aid) that font can have access to
  • Some ability to easily switch between mocks and real classes (support dependency injection?)
  • Assurance that there is no cost (in compiled bytes on real hardware) for providing test classes. (Compiler flags?)
  • Ability to test pixel mocks from pixel CI
  • How to structure test fixtures for discoverability
  • etc
@ianfixes ianfixes added enhancement New feature or request help wanted Extra attention is needed question Further information is requested labels Sep 28, 2020
@ianfixes
Copy link
Collaborator Author

ianfixes commented Oct 4, 2020

Relates to #169 -- whether a test/ directory can be an official part of a library

@jgfoster
Copy link
Member

jgfoster commented Nov 6, 2020

The other projects in this organization (such as LiquidCrystal) provide examples of how this can be approached. As we gain experience with those we may have better advice to contribute here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants