Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 3 additions & 0 deletions .atoum.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php

$runner->addTestsFromDirectory(__DIR__ . '/tests/units');
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
This repository is the source files for [http://extensions.atoum.org](http://extensions.atoum.org).

The purpose is to list extensions of atoum and expose it.

## Adding a new extension

Edit the file : `config/extensions.yml`.

## Build & tests

### Build

```
composer install
```

If you made some change in javascript or css, just use the [robo](http://robo.li/) build file:
```
vendor/bin/robo build
```

### Test

```
vendor/bin/atoum
vendor/bin/behat
```

### Run

```
composer web
```

Then use your favorite web browser and go to `http://localhost:8000/`.
21 changes: 21 additions & 0 deletions behat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
default:
formatters:
pretty: true
autoload:
'': %paths.base%/tests/features/bootstrap
suites:
default:
paths:
- %paths.base%/tests/features/default/
contexts:
- FeatureContext
- Behat\MinkExtension\Context\MinkContext

extensions:
Behat\MinkExtension:
goutte: ~
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the comments ?

sessions:
default:
psr7: ~
Cjm\Behat\Psr7Extension:
app: %paths.base%/tests/features/bootstrap/boot-behat.php
20 changes: 17 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"slim/slim": "^3.0",
"symfony/yaml": "^3.1",
"twig/twig": "^1",
"php-di/slim-bridge": "^1.0"
"php-di/slim-bridge": "^1.0",
"ciaranmcnulty/behat-psr7extension": "^0.2.0"
},
"autoload": {
"psr-4": {
Expand All @@ -27,9 +28,22 @@
"process-timeout": 36000
},
"scripts": {
"web": "php -S 0.0.0.0:8000 -t web/ web/index.php",
"web": "php -S 0.0.0.0:8000 -t web/ tests/server.php",
"post-install-cmd": [
"./vendor/bin/robo build"
]
}
},
"require-dev": {
"atoum/atoum": "^3.1",
"atoum/stubs": "^2.5",
"behat/behat": "^3.3",
"behat/mink-goutte-driver": "^1.2",
"behat/mink-extension": "^2.2"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/Grummfy/behat-psr7extension"
}
]
}
Loading