Code Monkey home page Code Monkey logo

Comments (5)

nicoddemus avatar nicoddemus commented on May 30, 2024

Not currently, but I'm open to suggestions. 😄

What's your use case exactly?

from pytest-cpp.

aselus-hub avatar aselus-hub commented on May 30, 2024

currently the use case would be to mark by feature set, types of tests and target module. i.e.: if i have a camera_lib .so being built from n classes, someone can run all the unittests for camera by running -m="unittest,camera_lib". Or someone can run all RPC interface tests that are marked as rpctest, endtoend and using_camera_lib. we have multiple test types/categories, these are just examples I brainstormed.

from pytest-cpp.

nicoddemus avatar nicoddemus commented on May 30, 2024

I see, thanks. Out of curiosity, do you use Boost.Python or Google Tests?

One option which is straightforward would be to automatically mark tests with the name of their executable, so all tests collected from camera_lib would have a camera_lib mark. Do you have other suggestions on how you would like to add some other custom marks?

from pytest-cpp.

nrbnlulu avatar nrbnlulu commented on May 30, 2024

Maybe if we could generate pytest (real) tests and each test would run the cpp test by command line then we could mark tests and have fixtures for them as well.

from pytest-cpp.

nicoddemus avatar nicoddemus commented on May 30, 2024

@nrbnlulu at runtime you mean? That's a possibility, but would require a significant rewrite of the plugin.

from pytest-cpp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.