Skip to content

nativescript-unit-test-runner is included in release build #2773

@dtopuzov

Description

@dtopuzov

From @enchev on June 9, 2016 14:54

From @rosen-vladimirov on March 7, 2016 7:27

In case the application has dependency on nativescript-unit-test-runner, calling tns build <platform> --release will include the unit-test runner in the prepared package. It is not expected to have it there in release build.

Some options to resolve the issue:

  • Implement special logic in CLI to exclude the nativescript-unit-test-runner when in release build. The problem here is that if the same issue occurs with other modules, we'll have to hard-code them in CLI as well.
  • Install nativescript-unit-test-runner as devDependency and add logic in it to be copied to <platforms> directory on after-prepare. This way the plugin will have the logic when to be copied to the project and when not. The same approach can be used for other packages.

Copied from original issue: #1572

Copied from original issue: NativeScript/nativescript-unit-test-runner#11

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions