tern icon indicating copy to clipboard operation
tern copied to clipboard

Separate tests per platforms

Open ivanayov opened this issue 2 years ago • 2 comments

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?

  1. Separate based on naming or reorganising the tests directory
  2. 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.

ivanayov avatar May 11 '22 17:05 ivanayov

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?

rnjudge avatar May 13 '22 02:05 rnjudge

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

ivanayov avatar Jun 23 '22 17:06 ivanayov