• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wooga / atlas-paket / 79 / 1
39%
master: 39%

Build:
DEFAULT BRANCH: master
Ran 02 Jan 2019 01:14PM UTC
Files 40
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

02 Jan 2019 01:14PM UTC coverage: 89.16%. Remained the same
79.1

push

jenkins

Refactor integration spec for paket unity change specs (#47)

Description
===========

This patch moves some boilerplate setup code into custom spock
extensions. This patch adds two extensions that provide a clean
interface for testing paket and paket unity project integrations:

* @PaketDependency
* @PaketUnity

@PaketDependency
----------------

Is a resource extension which setups a paket project.
It will create a `paket.dependendies` along with a `paket.lock` file and
stub `cs` files in `packages` directory. This extensions should be
updated for future use in other tests (don't create a lock file,
specify sources, etc).

```java
@ExtensionAnnotation(PaketDependencySetupExtension)
@interface PaketDependency {
    String[] projectDependencies() default []
}
```

```groovy
class ASpec extends IntegrationSpec {
    @PaketDependency(projectDependencies = ["D1", "D2", "D3"])
    PaketDependencySetup paketSetup
```

The annotated field will turn into a an Object of `PaketDependencySetup`
It is possible to override and regenerate the dependencies during test runtime.

```groovy
interface PaketDependencySetup {
    File getPaketDependencies()
    File getPaketLock()

    List<String> getProjectDependencies()

    File createDependencies()
    File createDependencies(List<String> dependencies)
}
```

@PaketUnity
-----------

The paket unity extension creates a mock setup for unity. Each field
annotated with `@PaketUnity` will generate a mock unity project.

```java
@ExtensionAnnotation(PaketUnitySetupExtension)
@interface PaketUnity {
    String projectName() default ""
    String[] projectReferences() default []
}
```

```groovy
class ASpec extends IntegrationSpec {
    @PaketUnity(projectReferences = ["D1", "D2", "D3"])
    PaketUnitySetup unityProject1
```

The annotated field will turn into a an Object of `PaketUnitySetup`
It is possible to override and regenerate the references during ... (continued)

658 of 738 relevant lines covered (89.16%)

0.89 hits per line

Source Files on job 79.1
  • Tree
  • List 0
  • Changed 40
  • Source Changed 40
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 79
  • 728e9674 on github
  • Prev Job for on master (#77.1)
  • Next Job for on master (#80.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc