<commit_before># Introduction
This page is about how to run and debug, in an IDE agnostic way,
any test classes added to the backend (Java layer).

# Steps

1. make sure you have a test database with name `cgds_test` available in mysql (this can be an empty db schema)
2. make sure you have built the project once with e.g. `mvn clean install -DskipTests`
3. Run integration tests with 
```
mvn integration-test -Ddb.test.username=cbio -Ddb.test.password=<your_db_password>
```
This will create the tables in `cgds_test` and populate your schema with test data.

4. you can run all tests with
```
mvn test -Ddb.test.username=cbio -Ddb.test.password=<your_db_password>
```

5. you can run a specific test with
```
mvn test -pl core -Dtest=TestIntegrationTest -Ddb.test.username=cbio -Ddb.test.password= <your_db_password>
```
where `-pl` is the name of the module (in this example `core`) and `-Dtest` is the name of the Java test
class (in this example `TestIntegrationTest`).
<commit_msg>small improvement in documentation line<commit_after># Introduction
This page is about how to run and debug, in an IDE agnostic way,
any test classes added to the backend (Java layer).

# Steps

1. make sure you have a test database with name `cgds_test` available in mysql (this can be an empty db schema)
2. make sure you have built the project once with e.g. `mvn clean install -DskipTests`
3. Run integration tests with 
```
mvn integration-test -Ddb.test.username=cbio -Ddb.test.password=<your_db_password>
```
This will create the tables in `cgds_test` and populate your schema with test data.

4. you can run all other tests with
```
mvn test -Ddb.test.username=cbio -Ddb.test.password=<your_db_password>
```

5. you can run a specific test with
```
mvn test -pl core -Dtest=TestIntegrationTest -Ddb.test.username=cbio -Ddb.test.password= <your_db_password>
```
where `-pl` is the name of the module (in this example `core`) and `-Dtest` is the name of the Java test
class (in this example `TestIntegrationTest`).

{'fraction_non_alphanumeric': 0.09353233830845771, 'fraction_numerical': 0.004975124378109453, 'mean_word_length': 4.377005347593583, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4904212', 'n_tokens_mistral': 644, 'n_tokens_neox': 625, 'n_words': 281}