mpociot / laravel-testtools Goto Github PK
View Code? Open in Web Editor NEWChrome extension to generate Laravel integration tests while using your app.
Chrome extension to generate Laravel integration tests while using your app.
Did the extension support uploading images though the test scenario?
Right now the JS code of the extension isn't very well structured.
Maybe we could introduce webpack in combination with vue-loader to this extension.
This would also allow us to make use of babel.js to write some nicer looking ES2015 code.
Any help on this topic is greatly appreciated.
Apply the jQuery event listener to textareas too.
There should probably be a LICENSE
file that contains a copyright (that has to be kept if people modify the extension according to MIT's terms). Currently there's no copyright statement, so nothing to keep except for the notice in the README?
When I installed the extension I'm getting a error in the console.
Uncaught (in promise) TypeError: Failed to fetch
at TypeError (native)
Chrome Version 49.0.2623.112 m
Extension Version: 0.2.0
The Version before 0.2.0 which was 0.1.2 works.
I also tested this extension on a brand new install of vivaldi 1.0 & same problem.
is there going to compatible Firefox WebExtension?
Thanks
Hey, I'm using the extension on chrome (v58.0.3029.81, OS: win7) and I got this error:
Uncaught ReferenceError: require is not defined at content.js:1
.
ideas? thx.
I clicked on a button which has Arabic language text:
<input type="submit" value="سجل">
The recorder did capture it as empty string:
$this->press('');
We should write tests for the extension.
Hey, the plugin always shows the very annoying vue message in the console.
Download the Vue Devtools for a better development experience: https://github.com/vuejs/vue-devtools
Please disable it. The internet says it can be done like this:
var Vue = require('vue');
Vue.config.devtools = false;
Love the extension has made writing tests so much easier, was wondering if there is any active work going on with it? I can see some easy simple features to add to this to make it even better!
Thank you.
In order to release updates faster we should integrate CircleCI and use the Chrome Web Store API to upload new extension releases.
This way commits to the master branch could automatically result in an extension update.
Hey, great plugin!
Any plans to support laravel dusk code generation instead ? Thanks
It would be nice if we could add a "Type" option so we could put in our own custom text.
Import of Laravel's 5.6 default UserFactory.php from database/factories folder worked successfully.
But when I click on the new menu entry "Factories --> App\User::Class --> Create Model:App\User::class" nothing happens except the test's function body is cleared.
What should happen? And why it does not?
<?php
// UserFactory.php
use Faker\Generator as Faker;
$factory->define(App\User::class, function (Faker $faker) {
return [
'name' => $faker->name,
'email' => $faker->unique()->safeEmail,
'password' => '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', // secret
'remember_token' => str_random(10),
];
});
While dusk is enabled, it generates wrong code when a faker option is selected:
use Tests\DuskTestCase;
use Laravel\Dusk\Browser;
class LoginTest extends DuskTestCase
{
/**
* @var FakerGenerator
*/
protected $faker;
/**
* Setup faker
*/
public function setUp()
{
parent::setUp();
$this->faker = \Faker\Factory::create();
}
/**
* My test implementation
*/
public function testHierarchyIsFantastic()
{
$this->browse(function (Browser $browser) {
$browser->visit('/login');
$this->type(email, '$this->faker->email'); // <--bad generated code:
// $this instead of $browser and apostrophes on wrong argument
});
}
}
Expected:
$browser->type('email', $this->faker->email);
Expected result: Nothing should be changed in test code
Actual result: Test name is changed to "testnull"
Ability to add class name so when a user copies to the clipboard it is a seemless paste vs pasting and removing ExampleTest
This is a great package! I think it is going to be a huge timesaver.
I have no experience with Chrome extension development but I had a bit of a dig around and kind of understand how this extension works.
There are a couple of things that I don't immediately understand:
I'm going to take the opportunity to dive into extensions and see if I can figure out how to scratch my own itch, will send PRs if I develop anything useful!
"Add Test" so that one can make multiple tests per "session" without copy and pasting each function
I was having a few issues with the generated test code and noticed changing the following fixed it:
public function setUp() { parent::setUp(); $this->faker = new Faker\Generator(); }
to
public function setUp() { parent::setUp(); $this->faker = \Faker\Factory::create(); }
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.