<commit_before># Get Salesforce Test Coverage

A node js project which helps getting the test coverage from your Salesforce org

## Screen shots ##
[[https://github.com/Lanceshi2/GetSFTestCoverage/blob/master/getCoverage.GIF|alt=Get Coverage Page]]
[[https://github.com/Lanceshi2/GetSFTestCoverage/blob/master/result.GIF|alt=Result]]

## Prerequisites ##
You need to ensure you have installed node js first. To download node js. Go to https://nodejs.org/en/

For Windows users, you need to install git for Windows to make npm install working. And make sure git.exe is in your path setting.

## Usage ##

Download the .zip and unzip it. In your command line, go to the folder and type npm install to install all the required packages.

Run node coverageEngine.js, then your local node server is running.

In your browser, open http://localhost:3000/home. Input your Salesforce url: login.salesforce.com for production or developer edition or test.salesforce.com for Sandbox.

Then type in your user name and password. Note that password is actually your password + security token. Then click Retrieve Test Coverage Button.

After the process is completed. You can view the results by clicking Open result page button.
<commit_msg>Update GIF file in readme<commit_after># Get Salesforce Test Coverage

A node js project which helps getting the test coverage from your Salesforce org

## Screen shots ##
[[https://github.com/Lanceshi2/GetSFTestCoverage/blob/master/getCoverage.GIF]]
[[https://github.com/Lanceshi2/GetSFTestCoverage/blob/master/result.GIF]]

## Prerequisites ##
You need to ensure you have installed node js first. To download node js. Go to https://nodejs.org/en/

For Windows users, you need to install git for Windows to make npm install working. And make sure git.exe is in your path setting.

## Usage ##

Download the .zip and unzip it. In your command line, go to the folder and type npm install to install all the required packages.

Run node coverageEngine.js, then your local node server is running.

In your browser, open http://localhost:3000/home. Input your Salesforce url: login.salesforce.com for production or developer edition or test.salesforce.com for Sandbox.

Then type in your user name and password. Note that password is actually your password + security token. Then click Retrieve Test Coverage Button.

After the process is completed. You can view the results by clicking Open result page button.

{'fraction_non_alphanumeric': 0.0689372178908494, 'fraction_numerical': 0.004924086992203529, 'mean_word_length': 4.405764966740577, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2159203', 'n_tokens_mistral': 662, 'n_tokens_neox': 637, 'n_words': 322}