NativeScript / NativeScript/nativescript-cli

Add unit tests for specified areas

Offen
#4,423 0 Kommentare 0 Reaktionen 4 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

technical debt
Vorherrschende Sprache
JavaScript
Sterne
1.1k
Forks
204
Ø Merge
1 T. 9 Std.
Gemergte PRs (30 T.)
8

Beschreibung

Is your feature request related to a problem? Please describe.
There are several cases covered by functional tests, which are more suitable for unit tests. Functional tests are much slower, so convert the appropriate ones to unit tests.

Describe the solution you'd like
Have more unit tests for scenarios currently covered with functional tests. Delete the affected functional tests after that. This will speed up the build.

Describe alternatives you've considered
No alternatives.

Additional context
Add unit tests for the following area:

  • Merging of build.xcconfig files:
    • Test scenario with build.xcconfig from plugin/multiple plugins
    • Test scenario with build.xcconfig from App_Resources/iOS
    • Test scenario with build.xcconfig from App_Resources/iOS and from plugins simultaneously

Tests related to work with devices

Tests related to passing invalid platform to commands

Tests related to signing behavior for iOS platform

  • tns run ios --emulator and tns run ios --provision <provision> should rebuild the project
  • tns run ios --provision <provision> and tns run ios --provision <provision> shouldn't rebuild the project
  • tns run ios --emulator and tns run ios --emulator shouldn't rebuild the project

Tests for ios-project-service

  • Adding .framework and .xcframeworks to Xcode project (preparePluginNativeCode)

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.