Skip to content

Commit 6c30b51

Browse files
authored
Merge pull request #25 from diffblue/develop
Release 1.4.0
2 parents 754996f + 8a86ab9 commit 6c30b51

File tree

4 files changed

+72
-1
lines changed

4 files changed

+72
-1
lines changed

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,33 @@ In turn this can be used by [Diffblue Cover](https://diffblue.com/cover) to tune
1515
Cover Annotations is published in the [Maven central repository](https://central.sonatype.com/artifact/com.diffblue.cover/cover-annotations/overview).
1616
In order to use the annotations simply add `cover-annotations` as a dependency to your project, for example copying the snippet for Maven or Gradle from the repository page.
1717

18+
### Maven
19+
20+
For installation into a Maven project the `provided` scope is recommended so that the annotations are available at compile and test time, but are not bundled with the project output:
21+
22+
```
23+
<dependencies>
24+
<dependency>
25+
<groupId>com.diffblue.cover</groupId>
26+
<artifactId>cover-annotations</artifactId>
27+
<version>1.4.0</version>
28+
<scope>provided</scope>
29+
</dependency>
30+
</dependencies>
31+
```
32+
33+
### Gradle
34+
35+
For installation into a Gradle project the `compileOnly` and `testImplementation` configurations are recommended so that the annotations are available at compile and test time, but are not bundled with the project output:
36+
37+
```
38+
dependencies {
39+
compileOnly("com.diffblue.cover:cover-annotations:1.4.0")
40+
41+
testImplementation("com.diffblue.cover:cover-annotations:1.4.0")
42+
}
43+
```
44+
1845
## Usage
1946

2047
Annotations placed on packages affect tests for all classes and methods under test in that package.

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<modelVersion>4.0.0</modelVersion>
1717
<groupId>com.diffblue.cover</groupId>
1818
<artifactId>cover-annotations</artifactId>
19-
<version>1.3.0</version>
19+
<version>1.4.0</version>
2020
<packaging>jar</packaging>
2121

2222
<name>Cover Annotations</name>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
* Copyright 2025 Diffblue Limited.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License").
5+
* You may not use this file except in compliance with the License.
6+
* A copy of the License is located at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* or in the "license" file accompanying this file. This file is distributed
11+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12+
* express or implied. See the License for the specific language governing
13+
* permissions and limitations under the License.
14+
*/
15+
package com.diffblue.cover.annotations;
16+
17+
/**
18+
* Empty interface, required, with the Category annotation, to label JUnit 4 tests in the following
19+
* manner: @Category(ContributionFromDiffblue.class).
20+
*
21+
* <p>Identifies a test that has contributions from Diffblue.
22+
*/
23+
public interface ContributionFromDiffblue {}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
* Copyright 2025 Diffblue Limited.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License").
5+
* You may not use this file except in compliance with the License.
6+
* A copy of the License is located at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* or in the "license" file accompanying this file. This file is distributed
11+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12+
* express or implied. See the License for the specific language governing
13+
* permissions and limitations under the License.
14+
*/
15+
package com.diffblue.cover.annotations;
16+
17+
/**
18+
* Empty interface, identifies a test as managed by Diffblue. Tests annotated with this can be
19+
* removed or updated by Diffblue and so should not be adjusted manually.
20+
*/
21+
public interface ManagedByDiffblue {}

0 commit comments

Comments
 (0)