GithubHelp home page GithubHelp logo

Comments (6)

carolmirakove avatar carolmirakove commented on September 26, 2024

@alexi0us check the pytest.ini. If your test functions and classes don't start with Check or test they won't be picked up.

from py.saunter.

alexi0us avatar alexi0us commented on September 26, 2024

@carolmirakove Thanks for your reply. All my tests start with test :-).
I am able to run the tests without any problems with the package list listed above (pysaunter 0.5). As soon as I update pysaunter, collection returns 0 tests. Its very weird problem.
It took me a day of debugging to understand that this issue is related to pysaunter - in the beginning I thought I was doing something wrong with pytest. To me it looks like that there is some kind of incompatibility between pytest and pysaunter versions but I can't really say what that is.

Cheers
Alexis

from py.saunter.

carolmirakove avatar carolmirakove commented on September 26, 2024

Ah well, sorry it wasn't that easy! I've seen that problem in the past so I thought it was worth a shot :)
FWIW I am running Py.Saunter 0.56 and pytest-2.3.4 with no problems.

from py.saunter.

alexi0us avatar alexi0us commented on September 26, 2024

No problem. Its always good to ask the obvious questions :-)
I have updated pytest to 2.3.4 and py,saunter to 0.56 but still the same result. Not sure if its related but whats your py-marks version?

from py.saunter.

carolmirakove avatar carolmirakove commented on September 26, 2024

I've got pytest-marks 0.4

from py.saunter.

alexi0us avatar alexi0us commented on September 26, 2024

From the release notes :
because the unittest stuff is gone, the collection algorithm is slightly different, which means the rules in pytest.ini are now being followed. The original rule that was unenforced was that your test methods must start with Check. CheckFoo, CheckBar, CheckFlyingMonkey etc. If you are using Test, or Scalpel or whatever, you can tweak the python_classes line to have the prefix you are using, or if you are using multiple prefixes it is a space delimited list.

Sorry for that. I was blind!

from py.saunter.

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.