<commit_before>= test-categories

 

== What's this ?

More info on how to use Maven and JUnit Categories here: http://stackoverflow.com/a/18297553/259988

== How to use

=== Maven dependency

This lib is available from Maven Central:

[source,xml]
-------------------------------------------
	<dependency>
		<groupId>com.teamtter.test</groupId>
		<artifactId>test-categories</artifactId>
		<version>0.0.4</version>
	</dependency>
-------------------------------------------

=== Surefire configuration

You may configure your pom as demonstrated below.
This allows you to have GUI tests executed on your Continuous Integration (Jenkins ?) but not on the command line by default.
* GUI tests have to be annotated with the JUnit @Category annotation: @Test @Category(com.teamtter.test.categories.GuiTest.class)
* On your CI, add -DexcludeGUITests=com.teamtter.test.categories.None so that GUI tests are not excluded.

[source,xml]<commit_msg>Added Maven Central badge<commit_after>:toc: macro

image:https://maven-badges.herokuapp.com/maven-central/com.teamtter.test/test-categories/badge.svg["Maven Central", link="http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.teamtter.test%22"]

toc::[]

= test-categories

 

== What's this ?

More info on how to use Maven and JUnit Categories here: http://stackoverflow.com/a/18297553/259988

== How to use

=== Maven dependency

This lib is available from Maven Central:

[source,xml]
-------------------------------------------
	<dependency>
		<groupId>com.teamtter.test</groupId>
		<artifactId>test-categories</artifactId>
		<version>0.0.4</version>
	</dependency>
-------------------------------------------

=== Surefire configuration

You may configure your pom as demonstrated below.
This allows you to have GUI tests executed on your Continuous Integration (Jenkins ?) but not on the command line by default.
* GUI tests have to be annotated with the JUnit @Category annotation: @Test @Category(com.teamtter.test.categories.GuiTest.class)
* On your CI, add -DexcludeGUITests=com.teamtter.test.categories.None so that GUI tests are not excluded.

[source,xml]
{'fraction_non_alphanumeric': 0.18134469696969696, 'fraction_numerical': 0.020359848484848484, 'mean_word_length': 3.1924603174603177, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '4061255', 'n_tokens_mistral': 680, 'n_tokens_neox': 604, 'n_words': 189}