GithubHelp home page GithubHelp logo

apache / cordova-test-platform Goto Github PK

View Code? Open in Web Editor NEW
5.0 16.0 10.0 107 KB

Apache cordova

License: Apache License 2.0

JavaScript 93.99% Batchfile 6.01%
cordova csharp cplusplus library objective-c java nodejs javascript mobile

cordova-test-platform's Introduction

cordova-test-platform

This repo contains the code for an Apache Cordova platform that allows you to build applications that target NOTHING. This platform is purely for testing, although it is also a good resource to see the minimum requirements to implement a new platform.

Apache Cordova is a project of The Apache Software Foundation (ASF)

How to Use This

This repository contains a reference implementation of Cordova's Platform API. The Platform API defines interfaces for Cordova tooling to be able to create, build/compile, run/emulate and clean Cordova projects targeted at a specific platform. Core Cordova platforms such as cordova-android and cordova-ios implement this API. This API is then used by tools such as cordova-cli and cordova-lib when managing platform-specific actions in cross-platform Cordova projects.

Further Reading

cordova-test-platform's People

Contributors

audreyso avatar breautek avatar dpogue avatar erisu avatar filmaj avatar janpio avatar niklasmerz avatar purplecabbage avatar raphinesse avatar timbru31 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cordova-test-platform's Issues

Test fails locally on Windows


> [email protected] test E:\Projects\Cordova\cordova-test-platform
> npm run jshint && jasmine


> [email protected] jshint E:\Projects\Cordova\cordova-test-platform
> jshint src && jshint spec

Started
.FFFFFF.Creating Cordova project for cordova-platform-test:
	Path: C:\Users\Jan\AppData\Local\Temp\cordova-test-platform-AcBYm0
	Name: HelloCordova
...........

Failures:
1) create create project with ascii name, no spaces
  Message:
    Expected 1 to be 0.
  Stack:
    Error: Expected 1 to be 0.
        at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:44:25)
        at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:81:9)
  Message:
    Expected false to be true.
  Stack:
    Error: Expected false to be true.
        at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:51:70)
        at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:81:9)
  Message:
    Expected false to be true.
  Stack:
    Error: Expected false to be true.
        at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:52:70)
        at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:81:9)
  Message:
    Expected false to be true.
  Stack:
    Error: Expected false to be true.
        at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:53:68)
        at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:81:9)
  Message:
    Expected false to be true.
  Stack:
    Error: Expected false to be true.
        at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:54:68)
        at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:81:9)
  Message:
    Expected false to be true.
  Stack:
    Error: Expected false to be true.
        at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:55:72)
        at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:81:9)
  Message:
    Expected 1 to be 0.
  Stack:
    Error: Expected 1 to be 0.
        at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:62:25)
        at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:81:9)

2) create create project with ascii name, and spaces
  Message:
    Expected 1 to be 0.
  Stack:
    Error: Expected 1 to be 0.
        at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:44:25)
        at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:88:9)
  Message:
    Expected false to be true.
  Stack:
    Error: Expected false to be true.
        at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:51:70)
        at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:88:9)
  Message:
    Expected false to be true.
  Stack:
    Error: Expected false to be true.
        at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:52:70)
        at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:88:9)
  Message:
    Expected false to be true.
  Stack:
    Error: Expected false to be true.
        at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:53:68)
        at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:88:9)
  Message:
    Expected false to be true.
  Stack:
    Error: Expected false to be true.
        at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:54:68)
        at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:88:9)
  Message:
    Expected false to be true.
  Stack:
    Error: Expected false to be true.
        at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:55:72)
        at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:88:9)
  Message:
    Expected 1 to be 0.
  Stack:
    Error: Expected 1 to be 0.
        at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:62:25)
        at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:88:9)

3) create create project with unicode name, no spaces
  Message:
    Expected 1 to be 0.
  Stack:
    Error: Expected 1 to be 0.
        at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:44:25)
        at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:95:9)
  Message:
    Expected false to be true.
  Stack:
    Error: Expected false to be true.
        at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:51:70)
        at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:95:9)
  Message:
    Expected false to be true.
  Stack:
    Error: Expected false to be true.
        at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:52:70)
        at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:95:9)
  Message:
    Expected false to be true.
  Stack:
    Error: Expected false to be true.
        at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:53:68)
        at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:95:9)
  Message:
    Expected false to be true.
  Stack:
    Error: Expected false to be true.
        at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:54:68)
        at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:95:9)
  Message:
    Expected false to be true.
  Stack:
    Error: Expected false to be true.
        at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:55:72)
        at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:95:9)
  Message:
    Expected 1 to be 0.
  Stack:
    Error: Expected 1 to be 0.
        at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:62:25)
        at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:95:9)

4) create create project with unicode name, and spaces
  Message:
    Expected 1 to be 0.
  Stack:
    Error: Expected 1 to be 0.
        at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:44:25)
        at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:102:9)
  Message:
    Expected false to be true.
  Stack:
    Error: Expected false to be true.
        at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:51:70)
        at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:102:9)
  Message:
    Expected false to be true.
  Stack:
    Error: Expected false to be true.
        at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:52:70)
        at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:102:9)
  Message:
    Expected false to be true.
  Stack:
    Error: Expected false to be true.
        at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:53:68)
        at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:102:9)
  Message:
    Expected false to be true.
  Stack:
    Error: Expected false to be true.
        at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:54:68)
        at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:102:9)
  Message:
    Expected false to be true.
  Stack:
    Error: Expected false to be true.
        at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:55:72)
        at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:102:9)
  Message:
    Expected 1 to be 0.
  Stack:
    Error: Expected 1 to be 0.
        at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:62:25)
        at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:102:9)

5) create create project with ascii+unicode name, no spaces
  Message:
    Expected 1 to be 0.
  Stack:
    Error: Expected 1 to be 0.
        at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:44:25)
        at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:109:9)
  Message:
    Expected false to be true.
  Stack:
    Error: Expected false to be true.
        at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:51:70)
        at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:109:9)
  Message:
    Expected false to be true.
  Stack:
    Error: Expected false to be true.
        at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:52:70)
        at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:109:9)
  Message:
    Expected false to be true.
  Stack:
    Error: Expected false to be true.
        at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:53:68)
        at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:109:9)
  Message:
    Expected false to be true.
  Stack:
    Error: Expected false to be true.
        at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:54:68)
        at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:109:9)
  Message:
    Expected false to be true.
  Stack:
    Error: Expected false to be true.
        at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:55:72)
        at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:109:9)
  Message:
    Expected 1 to be 0.
  Stack:
    Error: Expected 1 to be 0.
        at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:62:25)
        at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:109:9)

6) create create project with ascii+unicode name, and spaces
  Message:
    Expected 1 to be 0.
  Stack:
    Error: Expected 1 to be 0.
        at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:44:25)
        at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:116:9)
  Message:
    Expected false to be true.
  Stack:
    Error: Expected false to be true.
        at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:51:70)
        at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:116:9)
  Message:
    Expected false to be true.
  Stack:
    Error: Expected false to be true.
        at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:52:70)
        at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:116:9)
  Message:
    Expected false to be true.
  Stack:
    Error: Expected false to be true.
        at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:53:68)
        at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:116:9)
  Message:
    Expected false to be true.
  Stack:
    Error: Expected false to be true.
        at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:54:68)
        at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:116:9)
  Message:
    Expected false to be true.
  Stack:
    Error: Expected false to be true.
        at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:55:72)
        at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:116:9)
  Message:
    Expected 1 to be 0.
  Stack:
    Error: Expected 1 to be 0.
        at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:62:25)
        at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:116:9)

19 specs, 6 failures
Finished in 7.306 seconds

Api.js doesn't follow PlatformRequirements.md

https://github.com/apache/cordova-test-platform/blob/master/src/cordova/Api.js vs. https://github.com/apache/cordova-test-platform/blob/master/PlatformRequirements.md

Api.prototype.requirements = function() {
events.emit('log', "test-platform:Api:requirements");
return true;
};

vs.

https://github.com/apache/cordova-test-platform/blob/master/PlatformRequirements.md#platformapiprototyperequirements--function-

The .requirements must return a promise, resolved with a set of Requirement objects for the current platform.

Returns true

Api.prototype.run = function(runOptions) {
events.emit('log', "test-platform:Api:run");
};

vs

https://github.com/apache/cordova-test-platform/blob/master/PlatformRequirements.md#platformapiprototyperun--functionrunoptions-

.run must return a promise either fulfilled if the package was build and ran successfully, or rejected with a CordovaError.

Returns nothing

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.