magic_test 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -11
- data/lib/magic_test/support.rb +1 -0
- data/lib/magic_test/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 055c3c03ddef0cb663a7ed2056b08c550285ff34b467e18225d971fa7f9fc8df
|
4
|
+
data.tar.gz: dad366cfa42271a6ab70654e10ef33395e5f2e3db6362f802fd811e897a82e19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d95bf68163b3b91ee927958ba914e380f55e28324ae2546aaa6cd036c1bfe3d0295768f82a4f489ca2c14e8b57749e0292c7481dfdfde2e0e55fbbb835d8ddb5
|
7
|
+
data.tar.gz: ed563a867e518ceae203881b718d7637a3730d751bda506786e7b4549a95417202ba9d3ed3bf8a7c8472d72207a457017e73a513b478a032cebadb29166a09ea
|
data/README.md
CHANGED
@@ -2,14 +2,10 @@
|
|
2
2
|
|
3
3
|
Magic Test allows you to write Rails system tests interactively through a combination of trial-and-error in a debugger session and also just simple clicking around in the application being tested, all without the slowness of constantly restarting the testing environment.
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
Magic Test is still in early development, and that includes the documentation. Any questions you have that aren't already address in the documentation should be [opened as issues](https://github.com/bullet-train-co/magic_test/issues/new) so they can be appropriately addressed in the documentation.
|
5
|
+
> Magic Test is still in early development, and that includes the documentation. Any questions you have that aren't already address in the documentation should be [opened as issues](https://github.com/bullet-train-co/magic_test/issues/new) so they can be appropriately addressed in the documentation.
|
8
6
|
|
9
7
|
## Installation
|
10
8
|
|
11
|
-
Magic Test currently requires your application to have jQuery enabled.
|
12
|
-
|
13
9
|
Add this line to your application’s `Gemfile`:
|
14
10
|
|
15
11
|
```ruby
|
@@ -28,7 +24,7 @@ Next, run the install generator. If your application already includes jQuery, yo
|
|
28
24
|
rails g magic_test:install
|
29
25
|
```
|
30
26
|
|
31
|
-
|
27
|
+
> If your application doesn't include jQuery, you'll need to let Magic Test know to include it as needed. Just add `no` to the end of the line above or adjust your configuration afterward in `config/initializers/magic_test.rb`. We'll only inject jQuery when Magic Test is actively running. It will never show up on CI.
|
32
28
|
|
33
29
|
With this we will:
|
34
30
|
|
@@ -37,7 +33,7 @@ With this we will:
|
|
37
33
|
|
38
34
|
Finally, because it’s hard for us to do automatically, you will need to add the following before any closing `</head>` tags in any of the files in `app/views/layouts`:
|
39
35
|
|
40
|
-
```
|
36
|
+
```ruby+erb
|
41
37
|
<%= render 'magic_test/support' if Rails.env.test? %>
|
42
38
|
```
|
43
39
|
|
@@ -58,9 +54,8 @@ This results in three windows:
|
|
58
54
|
|
59
55
|
If you have the screen real estate, we recommend organizing the three windows so you can see them all at the same time. This is the intended Magic Test developer experience.
|
60
56
|
|
61
|
-
|
62
|
-
|
63
|
-
Just add a call to `magic_test` anywhere you want to start interactively developing test behavior and run the test the same way we've described above.
|
57
|
+
> #### Using Magic Test in New or Existing Tests
|
58
|
+
> Just add a call to `magic_test` anywhere you want to start interactively developing test behavior and run the test the same way we've described above.
|
64
59
|
|
65
60
|
### Writing Tests Manually in the Debugger Console
|
66
61
|
|
@@ -96,4 +91,4 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/bullet
|
|
96
91
|
|
97
92
|
## License
|
98
93
|
|
99
|
-
The
|
94
|
+
The Ruby Gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/lib/magic_test/support.rb
CHANGED
data/lib/magic_test/version.rb
CHANGED