tern
tern copied to clipboard
Separate tests per platforms
Currently all tests are organised together, which makes it hard to run all locally, as they are platform specific, which prevents creating good and simple instructions for #1164.
What do you think about those options?
- Separate based on naming or reorganising the tests directory
- Abstract platform specific configs, so that same tests can run everywhere.
IMO, the second option, if possible, would be the best, although it would require more effort.
When you say platform specific do you mean VM vs Mac vs Linux environment? I think all the tests should run in any of these environments, at least for all the class tests -- are there tests that were not working for you in a certain environment?
I'm sharing a list of platform specific tests available in the moment. Probably some of them are outdated and we might just need to do a tidy-up rather than major changes.
https://github.com/tern-tools/tern/blob/main/tests/test_analyze_common.py https://github.com/tern-tools/tern/blob/main/tests/test_analyze_default_filter.py https://github.com/tern-tools/tern/blob/main/tests/test_class_command.py