Hi,

currently there's no real plan.. I'm currently working on adding ctest support 
to the AutoTest plugin - this will be ready in 4.15.
So, if your pytests are integrated into ctest stuff you should be able to run 
it.. But this is probably not swhat you're asking for as this will have some 
limited functionality compared to the code based integration.

If you need an integration similar to the current approach of Qt Test / GTest / 
Boost / Catch: it's possible to do so, but this needs of course some 
implementation work. (most likely with an own implementation of a code parser) 
Haven't tried to dig deeper into pytest so far, so I have no clue how much work 
this would be.
Best would be to create a bugreport (feature request, suggestion) in jira ( 
https://bugreports.qt.io ) assign it to me, get some voters to express their 
need..

BR,
Christian

________________________________________
From: Qt-creator <qt-creator-boun...@qt-project.org> on behalf of jeandet 
<alexis.jean...@member.fsf.org>
Sent: Monday, November 2, 2020 3:16 PM
To: qt-creator@qt-project.org
Subject: Re: [Qt-creator] Python support

Hello Stefan,

Unless I missed something, this is not done/possible yet and I've no idea if 
this is in the roadmap.

That would imply to have a kind of interface between python support plugin and 
build system specific project plugins (CMake, QMake, QBS, Meson, ...).
I think, this would also imply to add some python setup information in kits.

Few of my projects build with either CMake or Meson and have Pybind11 or 
Shiboken2 wrappers plus python scripts( for tests but not only), and I have to 
admit that python support is not that good for such projects.
Having major python test api(s) tests detection would also be quite handy.

Best regards,
Alexis.
On Fri, 2020-10-30 at 15:56 -0400, Stefan Seefeld wrote:

Hello,

I'm looking for information about the existing (as well as planned) support for 
Python within qtcreator.

By that I mean not only the ability to edit Python code as well as run simple 
Python programs, but rather a full integration of a typical Python development 
environment (including especially Python's testing harnesses such as pytest).

My team is working on different projects that combine C++ and Python (many C++ 
libraries with Python bindings, some unit tests using google test, some using 
pytest), and we would like to access that more seamless through qtcreator.

I read that qtcreator supports a bunch of C++ test infrastructures (google, qt, 
boost), so I suspect it must be possible to extend it to also understand pytest.

Is that possible ? Any pointers or references ?

Thanks,

[Stefan]

_______________________________________________
Qt-creator mailing list
Qt-creator@qt-project.org<mailto:Qt-creator@qt-project.org>
https://lists.qt-project.org/listinfo/qt-creator

_______________________________________________
Qt-creator mailing list
Qt-creator@qt-project.org
https://lists.qt-project.org/listinfo/qt-creator

Reply via email to