Closed
Description
Specification
It would be ideal that upon running npm test
or npm run test
that it would execute all general tests, and then detect which platform we are on, and run platform-specific tests.
This would require the ability to "tag" certain tests to only be performed for platform specific group. Tagging would allow us to set the os.platform()
, os.arch()
and other arbitrary tags to be required.
Seems like there are 3 general solutions:
- Using
jest-group-runner
- this relies on comment annotations, and it seems to be file-specific - Using separate directories and testing for platform requirements in a the shell - this is complicated by the fact that windows doesn't have the same shell
- Using conditional
test
functions - this requires creating some conditional utility functions, and this becomes specific a single test function, perhaps conditionaldescribe
can also be used
Additional context
Tasks
- ...
- ...
- ...