teatime 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +29 -2
- data/lib/teatime/version.rb +1 -1
- data/teatime.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5554350c5f809d9a4bcbd19f9a7a121443927f3d
|
4
|
+
data.tar.gz: 1bc3ce707d6a0c7259a8d4b5142d735838ac6bc2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc4623f589d11828f21e3acb0e3716fe014c8ef4c928b28a969d4cce408fb826e8bb6ca5787ab59702392955d86ddbe78203814a8aa59b7bd7c01c997933ccbb
|
7
|
+
data.tar.gz: 11c0f75b37db540c6c384af8afd1fd007854acd6bcc825b3ab34020b904ad326ab0e7e92692073296185996df741a72ae25c1da2039f67c20e6ec947610645d2
|
data/README.md
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
# Teatime
|
2
2
|
|
3
|
-
|
3
|
+
At featurefabrik, we are big fans of javascript and testing.
|
4
|
+
We also believe, that mocha.js and chai.js are simply awesome.
|
5
|
+
To remove the npm dependencies and enable fast and simple testing of
|
6
|
+
non-Rails projects with js usage, we built Teatime.
|
7
|
+
|
8
|
+
For now, this is a proof of concept under heavy development. I just needed a
|
9
|
+
quick solution for js-testing with mocha and chai.
|
4
10
|
|
5
11
|
## Installation
|
6
12
|
|
@@ -8,6 +14,10 @@ Add this line to your application's Gemfile:
|
|
8
14
|
|
9
15
|
gem 'teatime'
|
10
16
|
|
17
|
+
or this to your gems .gemspec file:
|
18
|
+
|
19
|
+
spec.add_development_dependency "teatime"
|
20
|
+
|
11
21
|
And then execute:
|
12
22
|
|
13
23
|
$ bundle
|
@@ -18,7 +28,24 @@ Or install it yourself as:
|
|
18
28
|
|
19
29
|
## Usage
|
20
30
|
|
21
|
-
|
31
|
+
Initialie your tests with rake `teatime:init`. This will create the directory
|
32
|
+
`test/javascripts`, a `test_helper.js` file in that directory and a `Teafile`
|
33
|
+
with configurable settings in your project root.
|
34
|
+
|
35
|
+
You can now fire up your testsuite with:
|
36
|
+
|
37
|
+
rake teatime:serve
|
38
|
+
|
39
|
+
|
40
|
+
It will automatically load all all js files in `lib/**/*.js` and all tests that
|
41
|
+
match the pattern `test/javascript/**/*_test.js`.
|
42
|
+
|
43
|
+
No need to restart the server, if you add any files. All `*_test.js` files are
|
44
|
+
evaluated in the regular mocha.js scope, just use `describe(..)` or which
|
45
|
+
interface you like. You can set/change the mocha.js or chai.js settings in
|
46
|
+
`test_helper.js`.
|
47
|
+
|
48
|
+
Happy testing :)
|
22
49
|
|
23
50
|
## Contributing
|
24
51
|
|
data/lib/teatime/version.rb
CHANGED
data/teatime.gemspec
CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
|
|
16
16
|
non-Rails projects with js usage, we built Teatime.
|
17
17
|
DESC
|
18
18
|
).gsub(/^\s*/, '')
|
19
|
-
spec.homepage = "
|
19
|
+
spec.homepage = "https://github.com/featurefabrik/teatime"
|
20
20
|
spec.license = "MIT"
|
21
21
|
|
22
22
|
spec.files = `git ls-files`.split($/)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: teatime
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jakob Holderbaum
|
@@ -94,7 +94,7 @@ files:
|
|
94
94
|
- vendor/assets/javascripts/chai.js
|
95
95
|
- vendor/assets/javascripts/mocha.js
|
96
96
|
- vendor/assets/stylesheets/mocha.css
|
97
|
-
homepage:
|
97
|
+
homepage: https://github.com/featurefabrik/teatime
|
98
98
|
licenses:
|
99
99
|
- MIT
|
100
100
|
metadata: {}
|