Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@skip and @incomplete annotations in Cest and Test classes #2131

Closed
DavertMik opened this issue Jul 7, 2015 · 5 comments
Closed

@skip and @incomplete annotations in Cest and Test classes #2131

DavertMik opened this issue Jul 7, 2015 · 5 comments
Labels
Milestone

Comments

@DavertMik
Copy link
Member

Tests should be skipped by passing annotations into it, the same way as it is done for Cept files. By taking those markers from annotations we can bypass running before and after hooks for skipped tests. This should be already available in Codeception 2.1, however it looks like it doesn't work :(

@Naktibalda
Copy link
Member

Annotations don't work in Test format.

@Naktibalda Naktibalda reopened this Nov 24, 2015
@FelikZ
Copy link

FelikZ commented Dec 9, 2015

Works for me in Cest classes. (2.1.3)

@sasha-x
Copy link

sasha-x commented Mar 11, 2016

How do you about skip test (, cept, cest) files named with underscore prefix?
Like: _MyTemporaryDisabledCest.php

@vjandrea
Copy link

Works for me in Cest too (2.1.7), but @skip and @incomplete do not output the names of the involved tests in the console report:

Time: 1.32 minutes, Memory: 129.00Mb

There were 10 incomplete tests:

---------
1) 
---------
2) 
---------
3) 
---------
4) 
---------
5) 
---------
6) 
---------
7) 
---------
8) 
---------
9) 
---------
10) 
--

There was 1 skipped test:

---------
1) 
OK, but incomplete, skipped, or risky tests!
Tests: 49, Assertions: 182, Skipped: 1, Incomplete: 10.

@DavertMik DavertMik added this to the 2.2 milestone Mar 29, 2016
@Naktibalda
Copy link
Member

@vjandrea look at #2654

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants