test(ivy): turn ivy test selectors into real functions (#27372)

Having real functions allows me to bypass individual checks, ex.:

```
export function fixmeIvy(reason: string): boolean {
  return true;
}
```

This is useful for situation where I want to see if previously disabled tests
were fixed (ex. some PRs merged). In this case I don't want to run tests that
I know are not passing (obsolete / modified).

PR Close #27372
This commit is contained in:
Pawel Kozlowski 2018-11-30 17:39:17 +01:00 committed by Igor Minar
parent 1fa5478fef
commit c96dea27ce
1 changed files with 6 additions and 3 deletions

View File

@ -63,8 +63,9 @@ export function fixmeIvy(reason: string): boolean {
* obsoleteInIvy('some reason') && it(...);
* ```
*/
export const obsoleteInIvy = fixmeIvy;
export function obsoleteInIvy(reason: string): boolean {
return !ivyEnabled;
}
/**
* A function to conditionally skip the execution of tests that have intentionally
@ -83,4 +84,6 @@ export const obsoleteInIvy = fixmeIvy;
* modifiedInIvy('some reason') && it(...);
* ```
*/
export const modifiedInIvy = fixmeIvy;
export function modifiedInIvy(reason: string): boolean {
return !ivyEnabled;
}