Code Coverage With iOS Simulator (without testing)

I am wondering if anyone knows how to use the Code Coverage feature while running an iOS simulator, without running it through a test? The coder coverage works perfectly using Jest for my tests, but I am trying to get Code Coverage to work without testing.

My aim ultimately is to be able to run Code Coverage will I am clicking on the iOS simulator, and then can check the Code Coverage report to see the results.

I watched the official Jetbrains video sharing this new code coverage feature, using a web based front end. I am trying to run it with an iOS simulator, currently unsuccessfully.

 

Current Setup

Run iOS Simulator using Webstorm  ( successfully)

I can build and run my simulator through Webstorm and the app successfully loads and functions correctly.

I have the Run/Debug Config set to React Native, iOS and have an argument to set the simulator to an iPhone SE.
I have set to localhost:8081

Before launch I have 'Start React Native Bundler'

 

Debugging iOS Simulator using Webstorm (successfully)

I can use the debug button on the React Native iOS setup and it works well.

I set the iOS simulator to Debug Mode, which opens Chrome and then that links with Webstorm. This in turn opens chrome, which then links to Webstorm.
So this all works good for me in terms of debugging and breakpoints using Webstorm (i know I can also use Chrome but I want to use the IDE).

 

Running Code Coverage (unsuccessfully)

I create a JavaScript Debugger setup in the Run/Debug Config

I point it to localhost:8081

On running this, where i select 'run with coverage', I get a second tab opening in chome saying "React Native packager is running".

After click a few buttons on the iOS simulator and then stopping the Code Coverage, the report shows as if nothing as been click.

--------

Junior here, so any help would be great.

 

Software/Hardware

iMac running macOS Mojave
Webstorm 2019.1.3  (evaluation version)

 

 

 

 

 

0
2 comments

Not currently supported; please feel free to file a request for this feature to youtrack, https://youtrack.jetbrains.com/issues/WEB

1
Avatar
Permanently deleted user

Thanks Elena for letting me know so quickly! Gutted !

0

Please sign in to leave a comment.