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

wooga / atlas-build-unity / 37 / 2
25%
master: 78%

Build:
Build:
LAST BUILD BRANCH: PR-154
DEFAULT BRANCH: master
Ran 26 Jan 2021 03:23PM UTC
Files 47
Run time 15s
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

26 Jan 2021 03:22PM UTC coverage: 92.126% (+56.2%) from 35.91%
37.2

push

jenkins

Add macOS security helper lib (#91)

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

This is a rather big patch and is the culmintion of a few days of back
and forth with myself how to best implement and test
gradle tasks that work agains the macOS keychain with
the `security` commandline tool.

The issue is the Hen&Egg problem that arrises when one has to
write test code that uses the same/or similar code to verify the result.

Example:
If I want to test if a *create-keychain* tasks works I need to implement
a logic in the test code that will call the same cli tool that the task just used.
Even worth, if I then want to implement a *delete-keychain* task I need to write test code
to create keychains in the first place. To move this to fixums is a bad idea I think.

So I decided to split things up a little bit.

```
+--------------------+            +-----------------+
| macOS security lib +<-----------+ spock extension |
+---------------+----+            +-------^---------+
                ^                         |
                |                         |
                |                         |
                |                         |  unit/integration test
                |                         |
          +-----+-------------------+-----+
          | gradle security plugin  |
          +-------------------------+
```

The gradle plugin will not call the `security` tool directly. It will use a helper
library with utility methods to do so. All tests will be written with a custom
spock extension that helps with creating keychain test fixums at runtime.
This extension will also use and expose the same utility API.

This allows me to write the main implementation once and I can reuse it later
for other tasks like validation steps etc.

This patch brings in this helper library. It contains already a list of command classes.
I also added a helper class `MacOsKeychain` to present an OOP orientated interface.

Chagnes
===... (continued)

1556 of 1689 relevant lines covered (92.13%)

0.92 hits per line

Source Files on job 37.2
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 37
  • 7cf39ba3 on github
  • Prev Job for on release/1.x (#35.1)
  • Next Job for on release/1.x (#38.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