Skip to content

Commit

Permalink
Initial work
Browse files Browse the repository at this point in the history
  • Loading branch information
Palina Lushchynskaya committed Oct 3, 2018
0 parents commit 723f6a0
Show file tree
Hide file tree
Showing 25 changed files with 9,959 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# editorconfig.org

root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
lib
12 changes: 12 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"root": true,
"env": {
"browser": true,
"es6": true,
"node": true,
"mocha": true
},
"extends": [
"airbnb-base"
]
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
lib
node_modules
6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

562 changes: 562 additions & 0 deletions .idea/workspace.xml

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
language: node_js
node_js:
- stable
- v4
- '0.12'
- '0.10'
40 changes: 40 additions & 0 deletions Gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/* eslint global-require: 0 */
/* eslint import/no-unresolved: 0 */

const gulp = require('gulp');
const babel = require('gulp-babel');
const mocha = require('gulp-mocha');
const del = require('del');

gulp.task('clean', (cb) => {
del('lib', cb);
});

gulp.task('build', ['clean'], () => gulp
.src('src/**/*.js')
.pipe(babel())
.pipe(gulp.dest('lib')));

gulp.task('test', ['build'], () => {
process.env.NODE_ENV = 'test';
return gulp
.src('test/**.js')
.pipe(mocha({
ui: 'bdd',
reporter: 'spec',
timeout: typeof v8debug === 'undefined' ? 2000 : Infinity, // NOTE: disable timeouts in debug
}));
});

gulp.task('preview', ['build'], () => {
const { buildReporterPlugin } = require('testcafe').embeddingUtils;
const pluginFactory = require('./lib');
const reporterTestCalls = require('./test/utils/reporter-test-calls');
const plugin = buildReporterPlugin(pluginFactory);

reporterTestCalls.forEach((call) => {
plugin[call.method](...call.args);
});

process.exit(0);
});
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) Palina Lushchynskaya <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
37 changes: 37 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# testcafe-reporter-elixir
[![Build Status](https://travis-ci.org/ZeleniiZmey/testcafe-reporter-elixir.svg)](https://travis-ci.org/ZeleniiZmey/testcafe-reporter-elixir)

This is the **elixir** reporter plugin for [TestCafe](http://devexpress.github.io/testcafe).

<p align="center">
<img src="https://raw.github.com/ZeleniiZmey/testcafe-reporter-elixir/master/media/preview.png" alt="preview" />
</p>

## Install

```
npm install testcafe-reporter-elixir
```

## Usage

When you run tests from the command line, specify the reporter name by using the `--reporter` option:

```
testcafe chrome 'path/to/test/file.js' --reporter elixir
```


When you use API, pass the reporter name to the `reporter()` method:

```js
testCafe
.createRunner()
.src('path/to/test/file.js')
.browsers('chrome')
.reporter('elixir') // <-
.run();
```

## Author
Palina Lushchynskaya
Binary file added media/preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 723f6a0

Please sign in to comment.