Comments (6)
@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.
@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.
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.
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.
I've got pytest-marks 0.4
from py.saunter.
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)
- pysaunter summary of results doesn't match xml summary of results
- conftest.py s/b moved to pysaunter egg if possible HOT 1
- Enable HTMLUnit HOT 1
- Request: Screen capturing for Webdriver
- single-quoted -m argument on Windows fails; double-quoted one works HOT 1
- overly short limit on length of -m argument HOT 1
- Verify_equal in matchers.py has a mistake HOT 1
- Misdirected ticket
- -r run_tests_list & -s skip_tests_list options would really be nice
- Documentation on py.Saunter needs to be updated
- sauce platforms
- sauce profiles
- screenshots - rc
- matchers verify_true fails when expr is false HOT 12
- SauceLabs tests timeout when get_log is set to true in saunter.ini
- Requests version must be >= 1.1.0
- How to support firefox profile in pysaunter 0.63 WebDriver
- Matchers.py assert_text_present
- Installation into virtualenv doesn't install the saunter executable HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from py.saunter.