Comments (3)
FWIW, I agree with rewriting the Perl bits, but I don't think Go is an appropriate language for integration tests (obviously it is the correct choice for unit tests).
I think using a framework like BATS (combined with jq
) lets you write integration tests that are much easier to maintain and debug.
Having said that, whoever is going to spend the time on implementing this should have the final word on how it is done. 😄
from lima.
Am looking into taking this up. To support tests for both vz and qemu drivers and also try to make it more stable (tests passing in first run and not via retries). Also github actions now supports macos-13 runner in beta.
Is there any specific approach we need to take here ??
The plan i was thinking is to have it more of a integration tests. Tests run on top of limactl built binary.
from lima.
As an example of using BATS, creds.bats is a Rancher Desktop integration test that makes sure you can access a registry.
It uses some helper scripts, so it runs on macOS, Linux, and Windows (in WSL) and can test both moby and containerd configurations (and on Windows can test both Linux and Windows binaries to talk to moby/containerd).
I very much like the brevity and simplicity of the test code, making it easy to write and change the tests once you understand how the helper functions make it work in the different environments. E.g. ctrctl
is running either docker
or nerdctl
depending on which container engine has been configured.
from lima.
Related Issues (20)
- Lima disregards settings in `networks.yaml` until explicitly specified HOT 2
- Additional provisioning formats beyond shell scripts
- v0.22 planning HOT 5
- Generate jsonschema for validating the limayaml HOT 18
- Lima (0.21.0) Alma9 Linux VM Locking Up/Freezing on Max OS 14.4.1 HOT 4
- [master] `FATA[0002] networks.yaml field `paths.varRun` error: path "." is not an absolute path` HOT 3
- Ubuntu 24.04 now restricts user namespaces by default, which breaks some setups HOT 1
- lima fails in a confusing way when the home directory is on NFS HOT 2
- Add abstraction for the default `/tmp/lima` directory ? HOT 1
- apk installs to tmpfs HOT 10
- vm-to-vm network performance HOT 1
- Example for access to performance counters? HOT 6
- [hostagent] Waiting for the essential requirement 1 of 4: "ssh" HOT 2
- Option to add separate data disk, also for the disk-booting instances?
- User creation errors, with the new alpine-image template HOT 4
- v1.0 roadmap: alpine: switch away from ISO to qcow2 HOT 4
- Missing remote and local address values in hostagent logs on start HOT 1
- Past mounts are persisted through stop/start cycles HOT 6
- Unable to use x86_64 emulation with rosetta HOT 2
- hardened kernel plus firejail container setup with one command
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lima.