Giter Site home page Giter Site logo

Comments (6)

mbukatov avatar mbukatov commented on September 28, 2024 2

Thanks for the update. That means I can't use betelgeuse to get my current test case code importable right now.

My plan is to create sphinx autodoc directives which would be able to statically analyze pytest test cases (parsing the python source code into ast and using some pytest functions on top of that) to generate sphinx representation of the test case (in a similar way how autodoc is used to generate documentation for python code). From there, I could plug it into pylatest sphinx extension, which can already generate the xml importer files. In other words, my approach is to use standard upstream frameworks as much as possible (pytest, sphinx) and create plugins for these to get the functionality I miss.

from betelgeuse.

mbukatov avatar mbukatov commented on September 28, 2024 1

@elyezer No problem, I can relate to that (I wasn't able to spend much time on writing the plugins as I sketched above neither and so I was looking at betelgeuse as a way to kickstart the import). Thanks for the reply.

from betelgeuse.

elyezer avatar elyezer commented on September 28, 2024

Betelgeuse can't do that since it does static code analysis just like a linter. The pytest marks are dynamic, they need to import the code so that decorators are evaluated in order to add those marks.

I've created https://github.com/elyezer/pytest-betelgeuse to do some research on being able to parse the parameters. Unfortunately I got very busy on the other projects that I was not able to get the code ready and pushed. I was able to find the pytest objects needed to provide the parameters information and I now I need to write it down and get it generating the XML importer file.

I will leave this open for now, but this is something that betelgeuse itself can't do.

from betelgeuse.

elyezer avatar elyezer commented on September 28, 2024

@mbukatov I am very close to a release on another project I am working on and I am not able to push the code I have for the pytest-plugin. I will try to get this pushed this or next week.

I will let you know about it.

from betelgeuse.

elyezer avatar elyezer commented on September 28, 2024

This issue will be handled by #123

from betelgeuse.

elyezer avatar elyezer commented on September 28, 2024

Closing as duplicate of #39

from betelgeuse.

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.