Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
c3a68b2
fix blackbox bin
Baptouuuu Oct 26, 2025
f480879
setup api to test time and processes
Baptouuuu Oct 26, 2025
fc0daad
require php 8.4
Baptouuuu Nov 23, 2025
b74955b
implement simulated clock
Baptouuuu Nov 24, 2025
9aedc3a
implement simulated processes
Baptouuuu Nov 25, 2025
37c3f34
simulate http calls
Baptouuuu Nov 27, 2025
6aefd29
build simulation around a cluster made of machines connected over a n…
Baptouuuu Nov 30, 2025
90f4e23
add machine processes simulation
Baptouuuu Nov 30, 2025
ca35eca
allow to make http calls across the simulated network
Baptouuuu Nov 30, 2025
9c1b89c
remove previous implementation
Baptouuuu Nov 30, 2025
fd793c7
add time drift simulation
Baptouuuu Nov 30, 2025
c6f13d3
add network latency simulation
Baptouuuu Nov 30, 2025
45cd29c
allow to configure the machine OS
Baptouuuu Dec 2, 2025
df27667
remove implemented todo
Baptouuuu Dec 2, 2025
8e8a051
fix precision of time drift due to underlying real clock that still a…
Baptouuuu Dec 2, 2025
9e5fb0a
add machine environment variables
Baptouuuu Dec 2, 2025
99ad23d
add Machine::map()
Baptouuuu Dec 2, 2025
14cb6e9
wrap http/cli apps in objects to allow different strategies to define…
Baptouuuu Dec 2, 2025
b87627d
allow to access a machine over ssh
Baptouuuu Dec 2, 2025
0ac2523
remove unused property
Baptouuuu Dec 2, 2025
abc3fa0
use mutable rings to circle throught drifts/latencies
Baptouuuu Dec 4, 2025
30e12f1
allow to execute processes over ssh
Baptouuuu Dec 4, 2025
e473d02
add Cluster::map()
Baptouuuu Dec 4, 2025
e3f2ba3
add piped commands support
Baptouuuu Dec 4, 2025
d173710
allow to speed up time
Baptouuuu Dec 6, 2025
d2665ea
add missing annotations
Baptouuuu Dec 6, 2025
82e9cfb
typo
Baptouuuu Dec 6, 2025
c2b7ff0
remove indirection
Baptouuuu Dec 6, 2025
c62aa57
return a failed process when the executable doesnt exist
Baptouuuu Dec 6, 2025
f04e0fe
return a failure in case of a connection timeout due to unknown port …
Baptouuuu Dec 6, 2025
d990679
inject a 1 minute timeout when no http app is available on the specif…
Baptouuuu Dec 6, 2025
1c9b9b9
add note on the time speed up that may not be correct
Baptouuuu Dec 6, 2025
c4b023c
fix ci badge
Baptouuuu Dec 6, 2025
409478f
remove milliseconds to avoid changing the second due to test executio…
Baptouuuu Dec 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@ on: [push, pull_request]

jobs:
blackbox:
uses: innmind/github-workflows/.github/workflows/black-box-matrix.yml@main
uses: innmind/github-workflows/.github/workflows/black-box-matrix.yml@next
coverage:
uses: innmind/github-workflows/.github/workflows/coverage-matrix.yml@main
uses: innmind/github-workflows/.github/workflows/coverage-matrix.yml@next
secrets: inherit
psalm:
uses: innmind/github-workflows/.github/workflows/psalm-matrix.yml@main
uses: innmind/github-workflows/.github/workflows/psalm-matrix.yml@next
cs:
uses: innmind/github-workflows/.github/workflows/cs.yml@main
with:
php-version: '8.2'
uses: innmind/github-workflows/.github/workflows/cs.yml@next
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# testing

[![Build Status](https://github.com/innmind/testing/workflows/CI/badge.svg?branch=main)](https://github.com/innmind/testing/actions?query=workflow%3ACI)
[![Build Status](https://github.com/Innmind/testing/actions/workflows/ci.yml/badge.svg)](https://github.com/Innmind/testing/actions/workflows/ci.yml)
[![codecov](https://codecov.io/gh/innmind/testing/branch/develop/graph/badge.svg)](https://codecov.io/gh/innmind/testing)
[![Type Coverage](https://shepherd.dev/github/innmind/testing/coverage.svg)](https://shepherd.dev/github/innmind/testing)

Expand Down
2 changes: 1 addition & 1 deletion blackbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

Application::new($argv)
->when(
\get_env('ENABLE_COVERAGE') !== false,
\getenv('ENABLE_COVERAGE') !== false,
static fn(Application $app) => $app
->scenariiPerProof(1)
->codeCoverage(
Expand Down
37 changes: 36 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,42 @@
"issues": "http://github.com/innmind/testing/issues"
},
"require": {
"php": "~8.2"
"php": "~8.4",
"innmind/foundation": "dev-next",
"innmind/immutable": "dev-next",
"innmind/mutable": "dev-next",
"innmind/http": "dev-next",
"innmind/operating-system": "dev-next",
"innmind/reflection": "dev-next",
"innmind/math": "dev-next",
"innmind/xml": "dev-next",
"innmind/html": "dev-next",
"innmind/json": "dev-next",
"innmind/hash": "dev-next",
"innmind/encoding": "dev-next",
"innmind/specification": "~4.1",
"innmind/http-transport": "dev-next",
"innmind/filesystem": "dev-next",
"innmind/file-watch": "dev-next",
"innmind/time-continuum": "dev-next",
"innmind/time-warp": "dev-next",
"innmind/server-control": "dev-next",
"innmind/server-status": "dev-next",
"innmind/url": "dev-next",
"innmind/validation": "dev-next",
"innmind/media-type": "dev-next",
"innmind/io": "dev-next",
"innmind/ip": "dev-next",
"innmind/http-server": "dev-next",
"innmind/cli": "dev-next",
"innmind/router": "dev-next",
"innmind/async": "dev-next",
"innmind/signals": "dev-next",
"innmind/url-template": "dev-next",
"innmind/stack-trace": "dev-next",
"innmind/graphviz": "dev-next",
"innmind/colour": "dev-next",
"formal/access-layer": "dev-next"
},
"autoload": {
"psr-4": {
Expand Down
Empty file removed proofs/.gitkeep
Empty file.
Loading