Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Improve testing documentation #2701

Closed
Closed

Description

@tmcw

The testing documentation currently states

make test-* Builds and runs all tests. You can specify individual tests by replacing * with their name.

This doesn't seem to work:

the suggestion:

~/src/mapbox-gl-native〉make test-*
zsh: no matches found: test-*

just make test:

~/src/mapbox-gl-native〉make test
build: osx/x86_64
host: osx/x86_64
libs: headless=cgl  platform=osx  asset=fs  http=nsurl  cache=sqlite
* Recreating project...
* Building target test...
make[2]: Nothing to be done for `test'.

trying to run a platform of tests:

~/src/mapbox-gl-native〉make test-osx
build: osx/x86_64
host: osx/x86_64
libs: headless=cgl  platform=osx  asset=fs  http=nsurl  cache=sqlite
* Recreating project...
* Building target test...
make[2]: Nothing to be done for `test'.
./scripts/run_tests.sh "build/osx-x86_64/Release/test" --gtest_filter=osx
ulimit -c: unlimited
npm WARN package.json [email protected] No license field.
npm WARN installMany node-pre-gyp was bundled with [email protected], but bundled package wasn't found in unpacked tree
[email protected] ../node_modules/express
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected])
└── [email protected] ([email protected], [email protected])
Note: Google Test filter = osx
[==========] Running 0 tests from 0 test cases.
[==========] 0 tests from 0 test cases ran. (0 ms total)
[  PASSED  ] 0 tests.

Activity

  1. mikemorris commented on Oct 21, 2015

    @mikemorris
    Contributor

    +1, I've never found a way to specify individual tests (in bash) either.

  2. tmcw commented on Oct 26, 2015

    @tmcw
    ContributorAuthor

    Does anyone know how to run the core tests for mapbox-gl-native?

  3. kkaefer commented on Oct 26, 2015

    @kkaefer
    Member

    the * is a placeholder for Google Test case names

  4. kkaefer commented on Oct 26, 2015

    @kkaefer
    Member

    @tmcw: run bash, then make test-* -j8

  5. jfirebaugh commented on Oct 26, 2015

    @jfirebaugh
    Contributor
    ~/src/mapbox-gl-native〉make test-*
    zsh: no matches found: test-*
    

    I think this may be an incompatibility with zsh. make test-* works in bash. @tmcw does something like make 'test-*' work in zsh?

  6. mikemorris commented on Oct 26, 2015

    @mikemorris
    Contributor

    you can do things like make test-Storage.*
    note that the casing has to be exact

  7. tmcw commented on Oct 26, 2015

    @tmcw
    ContributorAuthor
  8. jfirebaugh commented on Apr 2, 2016

    @jfirebaugh
    Contributor

    I'd like to deprecate make test-*, make itest, make xctest, and any other test targets we have in favor of:

    PLATFORM=osx make test
    PLATFORM=ios make test
    PLATFORM=node make test
    PLATFORM=linux make test
    PLATFORM=android make test
    

    Each of these would build and run the maximal test suite for the given platform: i.e. the complete set of tests that are expected to work on that platform, including core unit tests (as we get them up and running on each platform), headless rendering tests (ditto), and all platform-specific tests that may exist.

    Hopefully we can support cross-compilation and native/simulator/emulator execution for all five platforms, at least on an OS X host.

  9. kkaefer commented on Apr 4, 2016

    @kkaefer
    Member

    Sounds good. What's your plan for limiting test suite runs to certain kinds of tests (e.g. when developing)?

  10. jfirebaugh commented on Apr 4, 2016

    @jfirebaugh
    Contributor

    Run in Xcode with an --gtest_filter=... argument set in the schema, or run the appropriate command by hand from the command line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions