Skip to content

Rachnerd/nativescript-angular-tests-hook

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NativeScript tests hook

Workaround for running unit tests located in source code (according to Angular style guide)

Currently NativeScript runs spec files located in app/tests. This hook copies all source code (in app) to a .tmp folder inside app/tests, so NativeScript can run unit tests that follow the Angular style guide.

Example

app
|-- feature
     |- feature.component.html
     |- feature.component.ts
     |- feature.component.spec.ts

Installation

Npm

npm install nativescript-tests-hook --save-dev

Usage

Unfortunately the test runner fetches the files before the hook is finished. To get around this you'll have to prepare before executing the test command.

tns prepare [platform] && tns test [platform]

About

Nativescript plugin that lets you handling your Nativescript tests like the angular style guide

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%