Why does my protractor test have "no specs found" when I include jasmine-reporters in my config file?

Why does my protractor test have "no specs found" when I include jasmine-reporters in my config file?

By : user75382
Date : November 28 2020, 09:01 AM
will help you Have you tried to return the capsPromise in your onPrepare function ? So your tests will wait for the getCapabilities() promise before running.
code :
onPrepare: function(){
    var jasmineReporters = require('jasmine-reporters');
    var capsPromise = browser.getCapabilities();

    return capsPromise.then(function(caps){
        var browserName = caps.caps_.browserName;
        // [..]

Share : facebook icon twitter icon
Reports 'protractor-jasmine2-screenshot-reporter' and 'jasmine-reporters' in a single config file but Jasmine2-Screensho

Reports 'protractor-jasmine2-screenshot-reporter' and 'jasmine-reporters' in a single config file but Jasmine2-Screensho

By : Kusal Thilanka Sayan
Date : March 29 2020, 07:55 AM
Any of those help Don't define two onPrepare functions, put everything into a single one:
code :
onPrepare: function() {

    var jasmineReporters = require('C:/Protractor_Scripts/node_modules/jasmine-reporters');
    jasmine.getEnv().addReporter(new jasmineReporters.JUnitXmlReporter({
        consolidateAll: true,
        savePath: 'C:/Protractor_Scripts/Results',
        filePrefix: 'xmloutput'
e2e testin with jasmine protractor "no specs found"

e2e testin with jasmine protractor "no specs found"

By : Dmytro Voytko
Date : March 29 2020, 07:55 AM
I wish did fix the issue. I realized what was my problem (thanks to the comments that helped me to realize). I was running my test with a gulp task I made:
code :
function e2e() {
    configFile: "conf/protractor.config.js",
    args: ['--baseUrl', 'http://localhost8080']
  })).on('error', function (e) {
    throw e;
Protractor config file to use both jasmine and cucumber specs

Protractor config file to use both jasmine and cucumber specs

By : Jyoti Prakash
Date : March 29 2020, 07:55 AM
hope this fix your issue In a basic setup you can't because you need to provide for example the framework and you can't have 2 frameworks in 1 default configuration file.
What you can do is use a command line argument and a cli tool like yargs and do something like this. If you run protractor through for example a npm script you can do something like this
code :
// the commmand line tool
const argv = require('yargs').argv;

// place you default config here, that should hold all the configs that are used with 
// Jsasmine and CucumberJS
const config = {
  baseUrl: '',
  capabilities: {
    'browserName': 'firefox',

  seleniumAddress: 'http://localhost:4444/wd/hub'

// If you pass --bdd to your commandline it will use cucumberjs, default is jasmine 2
if (argv.bdd) {
  config.framework = 'custom';
  config.frameworkPath = require.resolve('protractor-cucumber-framework');
  config.specs = ['test/e2e/cucumber/*.feature'];
  config.cucumberOpts = {
    require: ['test/e2e/cucumber/*.steps.js'],
    tags: [],
    strict: true,
    format: ["pretty"],
    dryRun: false,
    compiler: []
} else {
  config.framework = 'jasmine2';
  config.specs = ['test/e2e/e2e-spec.js'];
  config.jasmineNodeOpts = {
    showColors: true,

exports.config = config;
Jasmine: "Incomplete: No specs found" in Angular Typescript project

Jasmine: "Incomplete: No specs found" in Angular Typescript project

By : wiggy id
Date : March 29 2020, 07:55 AM
around this issue Solved it. Once i moved the .spec files into the /src folder, Jasmine detected them without any problems.
jasmine library "no specs found" when running same test twice

jasmine library "no specs found" when running same test twice

By : Francesco Pezzino
Date : March 29 2020, 07:55 AM
Does that help This is actually a known (though hard-to-find) issue with the jasmine package:
code :
const Jasmine = require("jasmine")
const decache = require("decache")

function jasmineExecute(fileName) {
    var jasmine = new Jasmine({});
    jasmine.onComplete(function(x) {
        if (x) {
            jasmineExecute("./test.js"); // risk of infinite loop
        else {
            console.log('Test failed : ' + fileName);
Related Posts Related Posts :
  • Ignore whitespace in Xtext rule
  • ServiceStack Ormlite: Circular reference between parent and child tables prevents foreign key creation
  • Can't connect to MobileFirst 7.1 server
  • See parameters that are overridden from TeamCity template
  • Can we send collection of messages in QuickBlox using Android SDK
  • SqlFileStream: Returning stream vs byte array in HTTP response
  • tvos: How should we handle low resolution monitor? like 1366x768
  • Aggregation binding only shows last item
  • Gitlab CI artifacts crashes with 403
  • InvalidSessionDescriptionError: Invalid description, no ice-ufrag attribute
  • Missing ionic.project file
  • ispConfig soap client functions of billing module does not exist
  • How to check for dynamic element names in a typeswitch expression?
  • braintree payments integration with zf2( zend framework 2 )
  • Sitecore 8 Admin role: Lock access
  • freemarker looping sequence error
  • How to set multiple commands in one yaml file with Kubernetes?
  • Quartz composer - output specific number
  • make gdb load a shared library from a specific path
  • ADD A COLUMN WITH SR.NO in Sap.m.table irrespective of other columns
  • Can I use SPARQL to query DBPedia for information about Wiki pages such as page length or number of times an article was
  • Jaro Similarity
  • How can I share sessions between Chrome and Paw?
  • how to start developing with OpenText CASE360
  • How to find relation between send and received message in twillio
  • Solve ~(P /\ Q) |- Q -> ~P in Isabelle
  • JetBrains Resharper 9 Ultimate Test Runner error: NUnit.Core.UnsupportedFrameworkException: Skipped loading assembly {My
  • Which RFID and RFID Reader to use?
  • wmi call returning Unexpected COM Error error
  • Training model ignored by stanford CoreNLP
  • z3: Is it possible to adjust the branching heuristics in Z3?
  • SAPUI5_JSON Data binding issue
  • How to remove "OK" button from Dialog fragment in Android
  • MobileFirst 7.1 connectOnStartup & WL.Client.connect different
  • OrientDB Fetch Plan/Strategies with Tinkerpop
  • Release memory from ID3D11Device::CreateBuffer(...)
  • Samsung SDK: how to install app through apache server and view logs in console?
  • Silex - Redirecting to home page if url not found
  • Convert a TIME8. to a Character Without First Converting to Numeric Format
  • ImageMagick, Can ImageMagick return single annotation as a bitmap?
  • Block access to some LAN ip`s using PFsense
  • noVNC Multiple Localhost Servers
  • What casts are allowed with `as`?
  • Google Drive API append file?
  • nix-env -qa not showing latest packages
  • In TI-BASIC, how do I add a variable in the middle of a String?
  • NetBeans - Display .gitignore Files in Projects/Files
  • Why is my command prompt freezing on Windows 10?
  • pass python arguments with argument name
  • Storing a time stamp(Calendar object) with objectify
  • XSLT to copy element without default/old namespace
  • Spark: join key-tuple pairs into key-list value
  • RethinkDB: Get last N from an object
  • How to direct my index to MediaWiki index.php
  • Removing ExecControl to upgrade to Ratpack v1.1.1?
  • When registering a table using the %pyspark interpreter in Zeppelin, I can't access the table in %sql
  • Phaser Sprite for joint between two bodies
  • The system detected a protection exception
  • OpenCL cannot find GPU device: NVIDIA GPU (Quadro K4000) + Visual Studio 2015
  • Rendr add custom header to fetch request (such as basic auth)
  • shadow
    Privacy Policy - Terms - Contact Us © animezone.co