Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add testing and coverage reporting using Codeception and Selenium #127

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
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
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/.idea
/c3.php
/devmode.php

25 changes: 25 additions & 0 deletions codeception.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
paths:
tests: tests
output: tests/_output
data: tests/_data
support: tests/_support
envs: tests/_envs
actor_suffix: Tester
extensions:
enabled:
- Codeception\Extension\RunFailed
coverage:
enabled: true
remote: false
include:
- ./*
exclude:
- .git/*
- javascript/*
- katex/*
- mathjax/*
- migrations/*
- tests/*
- tinymce4/*
- vendor/*

11 changes: 10 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
{
"require-dev": {
"phpunit/phpunit": "^5.7"
"codeception/codeception": "^2.4",
"codeception/c3": "^2.4"
},
"config": {
"process-timeout": 0
},
"scripts": {
"start": "php -S localhost:3000 -t .",
"test": "codecept run --coverage --coverage-html --coverage-xml",
"testv": "codecept run --steps --coverage --coverage-html --coverage-xml"
}
}
Loading