xdescribe,xit分别说'未知标识符'xdescribe'/'xit'

时间:2018-09-16 17:36:49

标签: javascript jasmine protractor jasmine-node

我试图通过编写xdescribe来禁用描述套件块,而茉莉花向我显示警告'未知标识符xdescribe'与'xit'相同,请帮助!

buildscript {
    repositories {
        mavenCentral()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.4'
    }
}
apply plugin: 'com.android.library'

dependencies {
    implementation 'com.android.support:support-v4:27.1.1'
}

android {
    compileSdkVersion 28
    buildToolsVersion '27.0.3'

    defaultConfig {
        minSdkVersion 15
        targetSdkVersion 28
    }

    sourceSets {
        main {
            java.srcDirs = ['src']
            resources.srcDirs = ['src']
            aidl.srcDirs = ['src']
            renderscript.srcDirs = ['src']
            res.srcDirs = ['res']
            assets.srcDirs = ['assets']

            manifest.srcFile 'AndroidManifest.xml'
        }
    }

}

//我的config.js

describe("Pending specs", function () { 

    xit("can be declared 'xit'", function () { 
        expect(true).toBe(false); 
    }); 

    it("can be declared with 'it' but without a function"); 

    it("can be declared by calling 'pending' in the spec body", function () { 
        expect(true).toBe(false); pending(); }); 
    }); 

});

0 个答案:

没有答案