-
Notifications
You must be signed in to change notification settings - Fork 51
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
'AUnit' library: a rewrite of ArduinoUnit to support ESP8266 and reduce flash memory usage #71
Comments
Thanks for your comments; and your version of AU. I am concerned about the fracturing of the API and the community that support it. There is an pull request that remains API compatible that saves significant memory #70 --- I was planning on putting in that update as a default but configurable change. Are you amenable to this? I did ask for support of the ESP8266 and ESP32 chips; I didn't want to incorporate changes, without any commitment of support. Since it would be less work to support 1 framework with 1 api, would you be willing to become a contributor? We could use the help... |
Hi Warren, I understand your concern about the split. But I think I'm pretty much committed to maintaining and extending my AUnit version. But I'm willing to help improve and test ArduinoUnit (even if only to learn and document incompatibility problems between the two libraries). My impression was that development on ArduinoUnit was pretty much dead. The first report of ESP8266 problems was filed 14 months ago in #54, and it is still broken. Even something as simple as releasing a new version of With regards to the flash memory usage problem of #70, my AUnit version consumes 66% less flash memory than ArduinoUnit. The best I could get ArduinoUnit was about a 50% savings. On a test that now consumes 54kB on ArduinoUnit, that extra 8.6kB is important to me. With regards to ESP support, my understanding was that the If you'd like me to take a look at some of your fixes, I'd be happy to. I've probably gotten to know the internals of ArduinoUnit better than the average user while I was rewriting it. Brian |
I seem to have time to work on issues for ArduinoUnit in the summers, which is the reason for the long delay. In your opinion most of the flash is due to string replication (I see something that might fix that, I want to try it tonight) and template specialization? What did you feel were the most memory intensive problems? |
Looking at the table in #70, there's a 35% savings from removing |
AceButtonTest takes 36k of flash in the current version (2.3.5-alpha, Arduino Mega) of ArduinoUnit (opposed to 54k). Thanks for pushing these features forward; it took a lot of work to get to something that feels better without backing off on features or making breaking changes. I really like the new en vitro and footnote features; you are welcome of course to cross-port these into AUnit. |
[thread summary] ArduinoUnit 2.3.5-alpha now supports flash string de-duplication on AVR and uses RAM on other platforms, along with a number of memory-saving optimizations that do not change the outcome of tests. It also supports ESP 8266 and ESP 32 platforms (along with development platform "en vitro" tests). Please try the latest pre-release and provide feedback on #73 if you are interested in these features. |
Hi everyone,
I just uploaded a rewrite of ArduinoUnit called AUnit to:
https://github.com/bxparks/AUnit
It is almost a drop-in replacement for ArduinoUnit.
AUnit solves 2 pressing problems for me:
I would like to thank the ArduinoUnit contributors for creating such an easy to use framework. I was hesitant to create a new derivative work, but ArduinoUnit has not seen a release in over a year, and I wanted to make more rapid progress.
Let me know if you have any questions, I'm happy to answer them.
The text was updated successfully, but these errors were encountered: