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

fix(R7-9625): fix plugin for use with webpack - fixes #73 #74

Closed
wants to merge 1 commit into from

Conversation

SunboX
Copy link

@SunboX SunboX commented Sep 1, 2020

Platforms affected

Motivation and Context

Description

Testing

Checklist

  • I've run the tests to see all new and existing tests pass
  • I added automated test coverage as appropriate for this change
  • Commit is prefixed with (platform) if this change only applies to one platform (e.g. (android))
  • If this Pull Request resolves an issue, I linked to the issue in the text above (and used the correct keyword to close issues using keywords)
  • I've updated the documentation if necessary

@SunboX
Copy link
Author

SunboX commented Sep 1, 2020

this fixes issue #73 and also a minor bug in the code itself

Copy link
Member

@erisu erisu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks OK to me

@SunboX
Copy link
Author

SunboX commented Sep 1, 2020

there seems to be an issue in cordova-parametic:

---------------------------------------------------------
4. Run (Jasmine) tests...
... locally
---------------------------------------------------------
cordova-paramedic: running tests locally
cordova-paramedic: Choosing Target for iOS
running:
    cordova run --list --emulator --no-telemetry --no-update-notifier
Error: Cannot read property 'trim' of undefined
TypeError: Cannot read property 'trim' of undefined
    at Object.getSimulatorModelId (/Users/travis/.nvm/versions/node/v12.18.3/lib/node_modules/cordova-paramedic/lib/utils/utilities.js:92:9)
    at ParamedicTargetChooser.chooseTargetForIOS (/Users/travis/.nvm/versions/node/v12.18.3/lib/node_modules/cordova-paramedic/lib/ParamedicTargetChooser.js:136:44)
    at ParamedicTargetChooser.chooseTarget (/Users/travis/.nvm/versions/node/v12.18.3/lib/node_modules/cordova-paramedic/lib/ParamedicTargetChooser.js:43:30)
    at ParamedicRunner.getCommandForStartingTests (/Users/travis/.nvm/versions/node/v12.18.3/lib/node_modules/cordova-paramedic/lib/paramedic.js:427:80)
    at /Users/travis/.nvm/versions/node/v12.18.3/lib/node_modules/cordova-paramedic/lib/paramedic.js:239:30
From previous event:
    at ParamedicRunner.runLocalTests (/Users/travis/.nvm/versions/node/v12.18.3/lib/node_modules/cordova-paramedic/lib/paramedic.js:280:14)
    at ParamedicRunner.runTests (/Users/travis/.nvm/versions/node/v12.18.3/lib/node_modules/cordova-paramedic/lib/paramedic.js:376:25)
    at /Users/travis/.nvm/versions/node/v12.18.3/lib/node_modules/cordova-paramedic/lib/paramedic.js:93:29
From previous event:
    at ParamedicRunner.run (/Users/travis/.nvm/versions/node/v12.18.3/lib/node_modules/cordova-paramedic/lib/paramedic.js:79:14)
    at Object.exports.run (/Users/travis/.nvm/versions/node/v12.18.3/lib/node_modules/cordova-paramedic/lib/paramedic.js:502:19)
    at Object.<anonymous> (/Users/travis/.nvm/versions/node/v12.18.3/lib/node_modules/cordova-paramedic/main.js:184:15)
    at Module._compile (internal/modules/cjs/loader.js:1137:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
    at Module.load (internal/modules/cjs/loader.js:985:32)
    at Function.Module._load (internal/modules/cjs/loader.js:878:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
---------------------------------------------------------
6. Collect data and clean up
---------------------------------------------------------
Completed tests at 2:57:36 PM
Collecting logs for the devices.
It looks like there is no target to get logs from.
Uninstalling the app.
cordova-paramedic: Killing the emulator process.
Running the following command:
    killall -9 "Simulator" "iOS Simulator"
$ killall -9 "Simulator" "iOS Simulator"
No matching processes belonging to you were found
WARNING: kill command returned 1
local-server: killing local file transfer server if it's up...
cordova-paramedic: Deleting the application: /var/folders/17/5mc7816d3mndxjqgplq6057w0000gn/T/tmp-3781kPQL4fLQ7gi7
/Users/travis/build/apache/cordova-plugin-screen-orientation
Error: TypeError: Cannot read property 'trim' of undefined
    at /Users/travis/.nvm/versions/node/v12.18.3/lib/node_modules/cordova-paramedic/lib/paramedic.js:99:23
    at processTicksAndRejections (internal/process/task_queues.js:79:11)
From previous event:
    at ParamedicRunner.run (/Users/travis/.nvm/versions/node/v12.18.3/lib/node_modules/cordova-paramedic/lib/paramedic.js:96:19)
    at Object.exports.run (/Users/travis/.nvm/versions/node/v12.18.3/lib/node_modules/cordova-paramedic/lib/paramedic.js:502:19)
    at Object.<anonymous> (/Users/travis/.nvm/versions/node/v12.18.3/lib/node_modules/cordova-paramedic/main.js:184:15)
    at Module._compile (internal/modules/cjs/loader.js:1137:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
    at Module.load (internal/modules/cjs/loader.js:985:32)
    at Function.Module._load (internal/modules/cjs/loader.js:878:14)
The command "if [[ "$ADDITIONAL_TESTS_DIR" != "" ]]; then
  cd $ADDITIONAL_TESTS_DIR && npm install && npm test;
else 
  $PARAMEDIC_COMMAND --config ./pr/$PLATFORM --plugin $PARAMEDIC_PLUGIN_TO_TEST --buildName $PARAMEDIC_BUILDNAME; 
fi" exited with 1.
cache.2
store build cache

@erisu
Copy link
Member

erisu commented Sep 1, 2020

@SunboX Yes, we are aware of the paramedic issue and have been actively trying to resolve the test framework.

We will re-run the tests after we have fixed the testing framework.

@erisu
Copy link
Member

erisu commented Nov 8, 2020

Could you rebase this PR? @SunboX

After rebasing, I think the iOS failing tests will pass again. As for the browser tests, they still failing for some other reasons.

@NiklasMerz
Copy link
Member

Closed because of this: #109 (comment)

@NiklasMerz NiklasMerz closed this Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants