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

wooga / atlas-paket / 79
39%

Build:
DEFAULT BRANCH: master
Ran 02 Jan 2019 01:14PM UTC
Jobs 1
Files 40
Run time 4s
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

pending completion
79

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

Jobs
ID Job ID Ran Files Coverage
1 79.1 02 Jan 2019 01:14PM UTC 0
89.16
Source Files on build 79
Detailed source file information is not available for this build.
  • Back to Repo
  • Jenkins Build #79
  • 728e9674 on github
  • Prev Build on master (#77)
  • Next Build on master (#80)
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