<commit_before>traitor [![Build Status](https://travis-ci.org/palatable/traitor.png?branch=master)](https://travis-ci.org/palatable/traitor)
=======

Trait testing with JUnit.

installation
------------

Traitor is currently in development and hasn't yet been released. As soon as it is, I'll add the POM `<dependency>` tag here.

usage
-----

An example test suite that tests traits alongside unit tests might look like:

```Java
@RunWith(Traits.class)
public class FunctionalIterableTest {

    @Test
    public void mapsFunctionOverValues() {
        //...
    }

    @TestTraits({Laziness.class, StandardIteration.class})
    public FunctionalIterable createTestSubject() {<commit_msg>Adding POM dependency information to README<commit_after>traitor [![Build Status](https://travis-ci.org/palatable/traitor.png?branch=master)](https://travis-ci.org/palatable/traitor)
=======

Trait testing with JUnit.

installation
------------

Add the following dependency to your `pom.xml` file:

```xml
<dependency>
    <groupId>com.jnape.palatable</groupId>
    <artifactId>traitor</artifactId>
    <version>1.0</version>
</dependency>
```

usage
-----

An example test suite that tests traits alongside unit tests might look like:

```Java
@RunWith(Traits.class)
public class FunctionalIterableTest {

    @Test
    public void mapsFunctionOverValues() {
        //...
    }

    @TestTraits({Laziness.class, StandardIteration.class})
    public FunctionalIterable createTestSubject() {
{'fraction_non_alphanumeric': 0.14179608372721134, 'fraction_numerical': 0.0013504388926401081, 'mean_word_length': 3.9072847682119205, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '1804497', 'n_tokens_mistral': 462, 'n_tokens_neox': 436, 'n_words': 113}